bugfixeshelp wanted
仓库指标
- Star
- (47,527 star)
- PR 合并指标
- (平均合并 3天 8小时) (30 天内合并 573 个 PR)
描述
Starting with this code:
from typing import NamedTuple, TypedDict
X = TypedDict("X", {
"some_config": int, # important
})
Y = NamedTuple("Y", [
("some_config", int), # important
])
Ruff (via rules UP013 and UP014) turns it into:
from typing import NamedTuple, TypedDict
class X(TypedDict):
some_config: int
class Y(NamedTuple):
some_config: int
Ideally it should retain the end-of-line comments.