Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b52ea58

Browse files
fixed some flake8 warnings
1 parent 66e95d1 commit b52ea58

File tree

5 files changed

+3
-4
lines changed

5 files changed

+3
-4
lines changed

‎setup.cfg‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,6 @@ ignore_missing_imports = true
6767
warn_incomplete_stub = true
6868
warn_redundant_casts = true
6969
warn_unused_configs = true
70+
71+
[codespell]
72+
ignore-words-list = thirdparty

‎tests/test_decorator_errors.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ async def setup_script(hass, notify_q, now, source):
4747
# trigger function to return the given list of times in now.
4848
#
4949
def return_next_time():
50-
nonlocal now
5150
if isinstance(now, list):
5251
if len(now) > 1:
5352
return now.pop(0)

‎tests/test_decorators.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ async def setup_script(hass, notify_q, now, source):
4747
# trigger function to return the given list of times in now.
4848
#
4949
def return_next_time():
50-
nonlocal now
5150
if isinstance(now, list):
5251
if len(now) > 1:
5352
return now.pop(0)

‎tests/test_function.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ def glob_side_effect(path, recursive=None, root_dir=None, dir_fd=None, include_h
158158
# trigger function to return the given list of times in now.
159159
#
160160
def return_next_time():
161-
nonlocal now
162161
if isinstance(now, list):
163162
if len(now) > 1:
164163
return now.pop(0)

‎tests/test_jupyter.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ def glob_side_effect(path, recursive=None, root_dir=None, dir_fd=None, include_h
160160
# trigger function to return the given list of times in now.
161161
#
162162
def return_next_time():
163-
nonlocal now
164163
if isinstance(now, list):
165164
if len(now) > 1:
166165
return now.pop(0)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /