mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-30 14:45:23 +08:00
Removed imported symbols that are not accessed or re-exported (third_party part 4 of 4) (#4391)
* Removed imported symbols that are not accessed or re-exported from within third_party stubs (part 4). These were all identified as unused symbols by the pyright type checker and language server. Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
2
third_party/2and3/yaml/__init__.pyi
vendored
2
third_party/2and3/yaml/__init__.pyi
vendored
@@ -10,7 +10,7 @@ from yaml.tokens import * # noqa: F403
|
||||
|
||||
from .cyaml import *
|
||||
|
||||
from . import resolver # Help mypy a bit; this is implied by loader and dumper
|
||||
from . import resolver as resolver # Help mypy a bit; this is implied by loader and dumper
|
||||
|
||||
if sys.version_info < (3,):
|
||||
_Str = Union[Text, str]
|
||||
|
||||
3
third_party/2and3/yaml/composer.pyi
vendored
3
third_party/2and3/yaml/composer.pyi
vendored
@@ -1,7 +1,6 @@
|
||||
from typing import Any
|
||||
|
||||
from yaml.error import Mark, MarkedYAMLError, YAMLError
|
||||
from yaml.nodes import CollectionNode, MappingNode, Node, ScalarNode, SequenceNode
|
||||
from yaml.error import MarkedYAMLError
|
||||
|
||||
class ComposerError(MarkedYAMLError): ...
|
||||
|
||||
|
||||
3
third_party/2and3/yaml/constructor.pyi
vendored
3
third_party/2and3/yaml/constructor.pyi
vendored
@@ -1,8 +1,7 @@
|
||||
import sys
|
||||
from typing import Any
|
||||
|
||||
from yaml.error import Mark, MarkedYAMLError, YAMLError
|
||||
from yaml.nodes import CollectionNode, MappingNode, Node, ScalarNode, SequenceNode
|
||||
from yaml.error import MarkedYAMLError
|
||||
|
||||
class ConstructorError(MarkedYAMLError): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user