-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Runtime patching unsupported methods #1014
Comments
Converting lines inside functions (precisely, "code blocks") is difficult because they are undeterministic. Here is an example where what def foo():
sleep(1)
from time import sleep
foo()
sleep = lambda x: None # no-op
foo() On the other hand, the scope of the Let's see what some existing static analyzers do: So, for this issue, it would be a solution to deal with only the case where the inferred name resolution can be determined as a single result. If so, the example above becomes not a target of this auto-conversion. |
|
time.sleep()
->await asyncio.sleep()
Such auto-conversion is already implemented in #965 for
st.write_stream()
that convertsst.write_stream()
toawait st.write_stream()
, so we can simply extend it.The text was updated successfully, but these errors were encountered: