Removed unused import symbols from stdlib stubs and fixed a few other errors detected by pyright. I did a similar pass several months ago; these were introduced since then. (#4803)

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric Traut
2020-12-06 09:44:18 -08:00
committed by GitHub
parent 3d8a29705e
commit c4d8507ff7
19 changed files with 26 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
from distutils.config import PyPIRCCommand
from typing import ClassVar, List, Optional, Tuple
from typing import ClassVar, List
class upload(PyPIRCCommand):
description: ClassVar[str]

View File

@@ -1,9 +1,9 @@
from _typeshed import AnyPath, SupportsWrite
from distutils.cmd import Command
from typing import IO, Any, AnyStr, Dict, Iterable, List, Mapping, Optional, Tuple, Type, Union
from typing import IO, Any, Dict, Iterable, List, Mapping, Optional, Tuple, Type, Union
class DistributionMetadata:
def __init__(self, path: Optional[Union[int, AnyPath]] = ...): ...
def __init__(self, path: Optional[Union[int, AnyPath]] = ...) -> None: ...
name: Optional[str]
version: Optional[str]
author: Optional[str]