mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-03 01:53:24 +08:00
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:
@@ -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]
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user