mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-09 03:01:25 +08:00
Mark many attributes as read-only properties (#7591)
This commit is contained in:
@@ -21,13 +21,17 @@ class Locale:
|
||||
def __ne__(self, other): ...
|
||||
def __hash__(self): ...
|
||||
def get_display_name(self, locale: Any | None = ...): ...
|
||||
display_name: Any
|
||||
@property
|
||||
def display_name(self): ...
|
||||
def get_language_name(self, locale: Any | None = ...): ...
|
||||
language_name: Any
|
||||
@property
|
||||
def language_name(self): ...
|
||||
def get_territory_name(self, locale: Any | None = ...): ...
|
||||
territory_name: Any
|
||||
@property
|
||||
def territory_name(self): ...
|
||||
def get_script_name(self, locale: Any | None = ...): ...
|
||||
script_name: Any
|
||||
@property
|
||||
def script_name(self): ...
|
||||
@property
|
||||
def english_name(self): ...
|
||||
@property
|
||||
|
||||
@@ -70,7 +70,8 @@ class Catalog:
|
||||
charset: Any | None = ...,
|
||||
fuzzy: bool = ...,
|
||||
) -> None: ...
|
||||
locale_identifier: Any
|
||||
@property
|
||||
def locale_identifier(self): ...
|
||||
header_comment: Any
|
||||
mime_headers: Any
|
||||
@property
|
||||
|
||||
@@ -5,8 +5,11 @@ PLURALS: Any
|
||||
DEFAULT_PLURAL: Any
|
||||
|
||||
class _PluralTuple(tuple[int, str]):
|
||||
num_plurals: Any
|
||||
plural_expr: Any
|
||||
plural_forms: Any
|
||||
@property
|
||||
def num_plurals(self) -> int: ...
|
||||
@property
|
||||
def plural_expr(self) -> str: ...
|
||||
@property
|
||||
def plural_forms(self) -> str: ...
|
||||
|
||||
def get_plural(locale=...): ...
|
||||
|
||||
@@ -9,7 +9,8 @@ class PluralRule:
|
||||
def parse(cls, rules): ...
|
||||
@property
|
||||
def rules(self): ...
|
||||
tags: Any
|
||||
@property
|
||||
def tags(self): ...
|
||||
def __call__(self, n): ...
|
||||
|
||||
def to_javascript(rule): ...
|
||||
|
||||
Reference in New Issue
Block a user