-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: main
Are you sure you want to change the base?
Conversation
a07a320
to
f57c91c
Compare
_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 |
There was a problem hiding this comment.
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, ...]): |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ref: jaraco/inflect#210
d15edbb
to
b2b5e84
Compare
b2b5e84
to
ef07488
Compare
Closes #17
Ref: jaraco/skeleton#143
This is one of the untyped libs used by setuptools.