mirror of
https://github.com/astral-sh/ruff
synced 2026-01-23 06:20:55 -05:00
Parse function annotations within the ClassDef scope (#144)
This commit is contained in:
12
resources/test/fixtures/F821.py
vendored
12
resources/test/fixtures/F821.py
vendored
@@ -65,3 +65,15 @@ from typing import List, TypedDict
|
||||
|
||||
class Item(TypedDict):
|
||||
nodes: List[TypedDict("Node", {"name": str})]
|
||||
|
||||
|
||||
from enum import Enum
|
||||
|
||||
|
||||
class Ticket:
|
||||
class Status(Enum):
|
||||
OPEN = "OPEN"
|
||||
CLOSED = "CLOSED"
|
||||
|
||||
def set_status(self, status: Status):
|
||||
self.status = status
|
||||
|
||||
Reference in New Issue
Block a user