Skip to content

Commit 63c2ede

Browse files
committed
prepare for mypy 1.12
1 parent 8058c74 commit 63c2ede

File tree

8 files changed

+1
-104
lines changed

8 files changed

+1
-104
lines changed

cwl_utils/graph_split.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ def rewrite(document: Any, doc_id: str) -> Set[str]:
146146
def rewrite_id(entry: Any) -> Union[MutableMapping[Any, Any], str]:
147147
if isinstance(entry, MutableMapping):
148148
if entry["id"].startswith(this_id):
149+
assert isinstance(this_id, str) # nosec B101
149150
entry["id"] = cast(str, entry["id"])[len(this_id) + 1 :]
150151
return entry
151152
elif isinstance(entry, str):

mypy-stubs/cachecontrol/__init__.pyi

Lines changed: 0 additions & 9 deletions
This file was deleted.

mypy-stubs/cachecontrol/cache.pyi

Lines changed: 0 additions & 12 deletions
This file was deleted.

mypy-stubs/cachecontrol/caches/__init__.pyi

Lines changed: 0 additions & 5 deletions
This file was deleted.

mypy-stubs/cachecontrol/caches/file_cache.pyi

Lines changed: 0 additions & 35 deletions
This file was deleted.

mypy-stubs/cachecontrol/compat.pyi

Lines changed: 0 additions & 7 deletions
This file was deleted.

mypy-stubs/cachecontrol/controller.pyi

Lines changed: 0 additions & 18 deletions
This file was deleted.

mypy-stubs/cachecontrol/wrapper.pyi

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)