Skip to content

Commit afc644e

Browse files
committed
prepare for future mypy release and enable --local-partial-types now
1 parent 15c8467 commit afc644e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

cwl_utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
fast_yaml = YAML(typ="safe")
3131

32-
_USERNS = None
32+
_USERNS: Optional[bool] = None
3333

3434

3535
def _is_github_symbolic_link(base_url: urllib.parse.ParseResult, contents: str) -> bool:

mypy.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ show_column_numbers = true
44
show_error_codes = true
55
pretty = true
66
strict = true
7+
local_partial_types = true
78
[mypy-ruamel.*]
89
ignore_errors = True

0 commit comments

Comments
 (0)