Skip to content

Commit

Permalink
prepare for mypy 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-c committed Sep 27, 2024
1 parent 8058c74 commit 08ad343
Show file tree
Hide file tree
Showing 8 changed files with 1 addition and 104 deletions.
1 change: 1 addition & 0 deletions cwl_utils/graph_split.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def rewrite(document: Any, doc_id: str) -> Set[str]:
def rewrite_id(entry: Any) -> Union[MutableMapping[Any, Any], str]:
if isinstance(entry, MutableMapping):
if entry["id"].startswith(this_id):
assert isinstance(this_id, str) # nosec B101

Check warning on line 149 in cwl_utils/graph_split.py

View check run for this annotation

Codecov / codecov/patch

cwl_utils/graph_split.py#L149

Added line #L149 was not covered by tests
entry["id"] = cast(str, entry["id"])[len(this_id) + 1 :]
return entry
elif isinstance(entry, str):
Expand Down
9 changes: 0 additions & 9 deletions mypy-stubs/cachecontrol/__init__.pyi

This file was deleted.

12 changes: 0 additions & 12 deletions mypy-stubs/cachecontrol/cache.pyi

This file was deleted.

5 changes: 0 additions & 5 deletions mypy-stubs/cachecontrol/caches/__init__.pyi

This file was deleted.

35 changes: 0 additions & 35 deletions mypy-stubs/cachecontrol/caches/file_cache.pyi

This file was deleted.

7 changes: 0 additions & 7 deletions mypy-stubs/cachecontrol/compat.pyi

This file was deleted.

18 changes: 0 additions & 18 deletions mypy-stubs/cachecontrol/controller.pyi

This file was deleted.

18 changes: 0 additions & 18 deletions mypy-stubs/cachecontrol/wrapper.pyi

This file was deleted.

0 comments on commit 08ad343

Please sign in to comment.