mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-29 19:26:45 +08:00
Replace incomplete module markers (#14030)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from _typeshed import FileDescriptorOrPath, Incomplete, StrPath
|
||||
from _typeshed import FileDescriptorOrPath, StrPath
|
||||
from collections.abc import Iterator
|
||||
from typing import Any
|
||||
|
||||
@@ -16,4 +16,4 @@ def guess_lexer_for_filename(_fn: StrPath, _text: str, **options: Any) -> Lexer:
|
||||
def guess_lexer(_text: str | bytes, **options: Any) -> Lexer: ...
|
||||
|
||||
# Having every lexer class here doesn't seem to be worth it
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
def __getattr__(name: str): ... # incomplete module
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
from _typeshed import Incomplete
|
||||
from collections.abc import Iterator, Mapping
|
||||
|
||||
from pygments.style import Style
|
||||
@@ -10,4 +9,4 @@ def get_style_by_name(name) -> type[Style]: ...
|
||||
def get_all_styles() -> Iterator[str]: ...
|
||||
|
||||
# Having every style class here doesn't seem to be worth it
|
||||
def __getattr__(name: str) -> Incomplete: ...
|
||||
def __getattr__(name: str): ... # incomplete module
|
||||
|
||||
Reference in New Issue
Block a user