Skip to content

Commit f933b97

Browse files
committed
STY: deal with flake8 errors
1 parent 9e4d257 commit f933b97

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

.flake8

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,10 @@ exclude =
77
versioneer.py,
88
data_prototype/_version.py,
99
docs/source/conf.py
10+
setup.py
11+
.eggs
12+
docs/source/gallery
13+
examples
1014
max-line-length = 115
11-
ignore = E203, W503 # Ignore some style 'errors' produced while formatting by 'black'
15+
# Ignore some style 'errors' produced while formatting by 'black' and docstrings (for now)
16+
ignore = E203, W503, D1, D3, D4

data_prototype/containers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from dataclasses import dataclass
2-
from typing import Protocol, List, Dict, Tuple, Optional, Any, Union, Callable, MutableMapping
2+
from typing import Protocol, Dict, Tuple, Optional, Any, Union, Callable, MutableMapping
33
import uuid
44

55
from cachetools import LFUCache

data_prototype/wrappers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def __init__(self, data: DataContainer, nus=None, /, **kwargs):
199199

200200
@_stale_wrapper
201201
def draw(self, renderer):
202-
data = self._update_wrapped(
202+
self._update_wrapped(
203203
self._query_and_transform(renderer, xunits=["xextent"], yunits=["yextent"]),
204204
)
205205
return self._wrapped_instance.draw(renderer)

examples/animation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
"""
88
import time
9-
from typing import Protocol, List, Dict, Tuple, Optional, Any, Union, Callable, MutableMapping
9+
from typing import Dict, Tuple, Any, Union
1010
from functools import partial
1111

1212
import numpy as np

0 commit comments

Comments
 (0)