Skip to content

Strict type checking and re-enable mypy#16

Merged
jaraco merged 7 commits intojaraco:mainfrom
Avasam:Strict-type-checking-and-re-enable-mypy
Mar 20, 2026
Merged

Strict type checking and re-enable mypy#16
jaraco merged 7 commits intojaraco:mainfrom
Avasam:Strict-type-checking-and-re-enable-mypy

Conversation

@Avasam
Copy link
Contributor

@Avasam Avasam commented Feb 8, 2025

Closes #15

Ref: jaraco/skeleton#143

Comment on lines +158 to +162
# reversed makes cmgrs no longer variadic, breaking type validation
# Mypy infers compose_two as Callable[[function, function], function]. See:
# - https://github.com/python/typeshed/issues/7580
# - https://github.com/python/mypy/issues/8240
return functools.reduce(compose_two, reversed(cmgrs)) # type: ignore[return-value, arg-type]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

# Disable due to many false positives
overload-overlap,

# jaraco/backports.tarfile#1
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mypy-backports.*]
follow_untyped_imports = True

# jaraco/portend#17
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Avasam Avasam force-pushed the Strict-type-checking-and-re-enable-mypy branch 5 times, most recently from 2c189f1 to 3206ddc Compare February 8, 2025 21:38
@jaraco
Copy link
Owner

jaraco commented Dec 24, 2025

Looks like we addressed #11 and #17 in other PRs. @Avasam would you consider rebasing or otherwise resolving the conflicts (for the fixes for #15)?

@Avasam Avasam force-pushed the Strict-type-checking-and-re-enable-mypy branch from fa436ae to 208d1e5 Compare December 24, 2025 19:53
@Avasam
Copy link
Contributor Author

Avasam commented Dec 24, 2025

Rebased to a single commit and I resolved comments that no longer apply

Copy link
Owner

@jaraco jaraco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work. This library is perhaps one of the more daunting ones regarding typing. Thanks for the contrib!

@jaraco jaraco merged commit 19f1cbb into jaraco:main Mar 20, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lack of parameter annotations makes mypy consider functions as untyped

2 participants