Could you be more explicit about what is banned by the control-flow exclusion?
I'm assuming that:
class A:
bar=float
if FOO:
bar=int
def a(x:int, y:int)->int # function defined with annotations
inside control flow
return x+y
def b(x:bar) # function annotated with value that depends on control
flow
is OK, and you're just talking about direct access to (the unfinished class or
module).__annotations__ but I'm not certain.
-jJ
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/VMPMQWCGWR7LRFCEK57VJTQVV6TCQOQN/
Code of Conduct: http://python.org/psf/codeofconduct/