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 Oct 4, 2024
1 parent 55ccde7 commit 48cea18
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 225 deletions.
3 changes: 2 additions & 1 deletion cwltool/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from .utils import DEFAULT_TMP_PREFIX, CWLObjectType, HasReqsHints, ResolverType

if TYPE_CHECKING:
from _typeshed import SupportsWrite
from cwl_utils.parser.cwl_v1_2 import LoadingOptions

from .builder import Builder
Expand Down Expand Up @@ -199,7 +200,7 @@ def __init__(self, kwargs: Optional[Dict[str, Any]] = None) -> None:
self.default_stdout: Optional[Union[IO[bytes], TextIO]] = None
self.default_stderr: Optional[Union[IO[bytes], TextIO]] = None
self.validate_only: bool = False
self.validate_stdout: Optional[Union[IO[bytes], TextIO, IO[str]]] = None
self.validate_stdout: Optional["SupportsWrite[str]"] = None
super().__init__(kwargs)
if self.tmp_outdir_prefix == "":
self.tmp_outdir_prefix = self.tmpdir_prefix
Expand Down
26 changes: 0 additions & 26 deletions mypy-stubs/black/__init__.pyi

This file was deleted.

197 changes: 0 additions & 197 deletions mypy-stubs/mistune.pyi

This file was deleted.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"importlib_resources>=1.4;python_version<'3.9'",
"coloredlogs",
"pydot >= 1.4.1, <3",
"argcomplete",
"argcomplete >= 1.12.0",
"pyparsing != 3.0.2", # breaks --print-dot (pydot) https://github.com/pyparsing/pyparsing/issues/319
"cwl-utils >= 0.32",
"spython >= 0.3.0",
Expand Down

0 comments on commit 48cea18

Please sign in to comment.