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
None is subtype of everything? #65
Comments
Hi @jasonkuhrt , Pyre is warning you that you
After correcting the file, no errors are generated for me: import random
import string
def gen(allowed_chars: str, length: int) -> str:
return ''.join([random.choice(allowed_chars) for _ in range(1, length)])
def basic(length: int) -> str:
return gen(string.ascii_letters + string.digits, length) Feel free to reopen this issue if you have further related questions. |
I don't understand this. |
Let me rephrase - the error about a missing return in |
@dark I see, thanks. Could I fix this at the project level via local defs? The issue is that I'm using e.g.
|
@jasonkuhrt Using the imported |
@dark ahhhhh sorry my eyes glazed over that, of course. Thanks. |
Why does
basic
type check?I tried strict mode on the module to no effect (unsurprisingly since its about
Any
, notNone
).The text was updated successfully, but these errors were encountered: