mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Mark many attributes as read-only properties (#7591)
This commit is contained in:
@@ -121,10 +121,14 @@ class Distribution(IResourceProvider, IMetadataProvider):
|
||||
PKG_INFO: str
|
||||
location: str
|
||||
project_name: str
|
||||
key: str
|
||||
extras: list[str]
|
||||
version: str
|
||||
parsed_version: tuple[str, ...]
|
||||
@property
|
||||
def key(self) -> str: ...
|
||||
@property
|
||||
def extras(self) -> list[str]: ...
|
||||
@property
|
||||
def version(self) -> str: ...
|
||||
@property
|
||||
def parsed_version(self) -> tuple[str, ...]: ...
|
||||
py_version: str
|
||||
platform: str | None
|
||||
precedence: int
|
||||
|
||||
@@ -13,7 +13,8 @@ class InfoCommon:
|
||||
def name(self): ...
|
||||
def tagged_version(self): ...
|
||||
def tags(self): ...
|
||||
vtags: Any
|
||||
@property
|
||||
def vtags(self): ...
|
||||
|
||||
class egg_info(InfoCommon, Command):
|
||||
description: str
|
||||
|
||||
Reference in New Issue
Block a user