Replace incomplete module markers (#14030)

This commit is contained in:
Sebastian Rittau
2025-05-13 08:53:39 +02:00
committed by GitHub
parent 8b877a6993
commit e08e349699
84 changed files with 89 additions and 199 deletions
+2 -2
View File
@@ -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 -2
View File
@@ -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