ruff/crates/ruff_linter/resources/test/fixtures/pyflakes/F821_23.py

7 lines
271 B
Python

"""Test for type annotation parsing in `NamedTuple`."""
import typing
User = typing.NamedTuple('User', **{'name': str, 'password': bytes})
User = typing.NamedTuple('User', name=str, password=bytes)
User = typing.NamedTuple('User', [('name', str), ('password', bytes)])