Skip to content

Commit 4ad548e

Browse files
committed
chore: Fix linter warnigns
1 parent 06deb03 commit 4ad548e

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

examples/runner.py

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
import generics
1212
import jsonfile
1313
import lazy_type_evaluation
14+
import literal
1415
import newtype
1516
import rename
1617
import rename_all
@@ -49,6 +50,7 @@ def run_all():
4950
run(union_tagging)
5051
run(generics)
5152
run(lazy_type_evaluation)
53+
run(literal)
5254
if PY310:
5355
import union_operator
5456

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test=pytest
44
addopts = -v
55
[flake8]
66
max-line-length = 120
7-
ignore = E252
7+
ignore = E252,W503
88
max-complexity = 30
99
[isort]
1010
line_length = 120

tests/test_compat.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
from typing import Dict, Generic, List, NewType, Optional, Set, Tuple, TypeVar, Union
55

66
import serde
7-
8-
T = TypeVar('T')
9-
107
from serde.compat import (
118
is_dict,
129
is_generic,
@@ -26,6 +23,8 @@
2623

2724
from .data import Bool, Float, Int, Pri, PriOpt, Str
2825

26+
T = TypeVar('T')
27+
2928

3029
def test_types():
3130
assert is_list(List[int])

tests/test_literal.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ class LitNestedPriTuple:
130130
DictLiterals = Dict[str, Literals]
131131

132132

133-
#### Tests
133+
"""
134+
Tests
135+
"""
134136

135137

136138
@pytest.mark.parametrize("opt", opt_case, ids=opt_case_ids())

0 commit comments

Comments
 (0)