mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
inspect: use Literal type for Attribute.kind (#9149)
This commit is contained in:
@@ -585,7 +585,7 @@ _Object: TypeAlias = object
|
||||
|
||||
class Attribute(NamedTuple):
|
||||
name: str
|
||||
kind: str
|
||||
kind: Literal["class method", "static method", "property", "method", "data"]
|
||||
defining_class: type
|
||||
object: _Object
|
||||
|
||||
|
||||
Reference in New Issue
Block a user