MCPcopy Index your code
hub / github.com/RustPython/RustPython / f7

Function f7

extra_tests/snippets/syntax_function2.py:82–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80
81
82def f7():
83 # PEP 649: annotations are deferred, so void is not evaluated at definition time
84 try:
85 def t() -> void: # noqa: F821
86 pass
87 except NameError:
88 return True
89 return False
90
91assert not f7() # PEP 649: no NameError because annotation is deferred
92

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected