-
Notifications
You must be signed in to change notification settings - Fork 271
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
Improve inference by enabling --protocols
by default.
#58
Comments
This seems to only happen under Python 3. Under Python 2 (with backported type annotations), the inference looks correct, i.e., balance and amount are, and In general, our Python 3 compatibility is still WIP. |
(CC @ddfisher :-) |
This no longer seems to be Python 3-specific, since I now get identical results in 2 and in 3:
The incorrect Passing the
So I think the way to fix this would be to make |
--protocols
by default.
The example below is inferring amount as
Iterable
and claiming thatbalance
is an unknown attribute as well as claiming thatAccount.deposit
returns alist
.Potentially multiple different issues. Or just a need for actual documentation to describe the proper getting started code base bootstrapping process and expected odd results on entirely un-annotated code. :)
The text was updated successfully, but these errors were encountered: