mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-04 18:58:04 +00:00
public => nonlocal
This commit is contained in:
parent
0cf449efeb
commit
efc15aaecf
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ reveal_type(a.z) # revealed: Literal[0]
|
|||
|
||||
# Make sure that we infer the narrowed type for eager
|
||||
# scopes (class, comprehension) and the non-narrowed
|
||||
# public type for lazy scopes (function)
|
||||
# nonlocal type for lazy scopes (function)
|
||||
class _:
|
||||
reveal_type(a.x) # revealed: Literal[0]
|
||||
reveal_type(a.y) # revealed: Literal[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue