Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strict type checking and py.typed #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Avasam
Copy link
Contributor

@Avasam Avasam commented Feb 8, 2025

Closes #17

Ref: jaraco/skeleton#143

This is one of the untyped libs used by setuptools.

@Avasam Avasam force-pushed the Strict-type-checking-and-py.typed branch 7 times, most recently from a07a320 to f57c91c Compare February 8, 2025 02:42
Comment on lines +187 to +190
_unicode_trap = ExceptionTrap(UnicodeDecodeError) # type: ignore[no-untyped-call] # jaraco/jaraco.context#15


@_unicode_trap.passes
def is_decodable(value):
@_unicode_trap.passes # type: ignore[misc] # jaraco/jaraco.context#15
Copy link
Contributor Author

Choose a reason for hiding this comment

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

"""
>>> indent('foo')
' foo'
"""
return prefix + string


class WordSet(tuple):
class WordSet(Tuple[str, ...]):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This class has a lot of methods that return WordSet or WordSet | Self, but it would somewhat trivial to update them to all return Self

@@ -23,6 +30,7 @@ def report_newlines(filename):
count = len(tuple(always_iterable(newlines)))
engine = inflect.engine()
print(
# Pyright typing issue: jaraco/inflect#210
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-py.typed branch 4 times, most recently from d15edbb to b2b5e84 Compare February 8, 2025 02:59
@Avasam Avasam force-pushed the Strict-type-checking-and-py.typed branch from b2b5e84 to ef07488 Compare February 8, 2025 03:06
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.

Fully type module then mark as py.typed
1 participant