mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
11 lines
365 B
Python
11 lines
365 B
Python
import collections
|
|
|
|
person: collections.namedtuple # Y024 Use "typing.NamedTuple" instead of "collections.namedtuple"
|
|
|
|
from collections import namedtuple
|
|
|
|
person: namedtuple # Y024 Use "typing.NamedTuple" instead of "collections.namedtuple"
|
|
|
|
person = namedtuple(
|
|
"Person", ["name", "age"]
|
|
) # Y024 Use "typing.NamedTuple" instead of "collections.namedtuple"
|