Skip to content

typing fixes#347

Merged
Christian-B merged 3 commits into
masterfrom
mypy2
May 13, 2026
Merged

typing fixes#347
Christian-B merged 3 commits into
masterfrom
mypy2

Conversation

@Christian-B

Copy link
Copy Markdown
Member

adaptions form mypy 2.0.0

note camel_case_config_parser.py read super is typed as

@overload
def [AnyStr: (str, bytes)] read(self, filenames: AnyStr | PathLike[AnyStr], encoding: str | None = ...) -> list[AnyStr]

@overload
def read(self, filenames: Iterable[str | PathLike[str]], encoding: str | None = ...) -> list[str]

@overload
def read(self, filenames: Iterable[bytes | PathLike[bytes]], encoding: str | None = ...) -> list[bytes]

@overload
def read(self, filenames: Iterable[str | bytes | PathLike[str] | PathLike[bytes]], encoding: str | None = ...) -> list[str | bytes]

Attempt to replicate it failed and in the end not considered worth it

@Christian-B

Copy link
Copy Markdown
Member Author

tested with mypy2

@Christian-B Christian-B merged commit 08fb4cb into master May 13, 2026
12 checks passed
@Christian-B Christian-B deleted the mypy2 branch May 13, 2026 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants