mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-24 04:41:30 +08:00
Use lowercase type everywhere (#6853)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import optparse
|
||||
from collections.abc import Iterable, Mapping
|
||||
from configparser import RawConfigParser
|
||||
from typing import Any, ClassVar, Type
|
||||
from typing import Any, ClassVar
|
||||
|
||||
from docutils import SettingsSpec
|
||||
from docutils.parsers import Parser
|
||||
@@ -64,7 +64,7 @@ class OptionParser(optparse.OptionParser, SettingsSpec):
|
||||
version_template: ClassVar[str]
|
||||
def __init__(
|
||||
self,
|
||||
components: Iterable[Type[Parser]] = ...,
|
||||
components: Iterable[type[Parser]] = ...,
|
||||
defaults: Mapping[str, Any] | None = ...,
|
||||
read_config_files: bool | None = ...,
|
||||
*args,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, ClassVar, Type
|
||||
from typing import Any, ClassVar
|
||||
|
||||
from docutils import Component
|
||||
|
||||
@@ -13,4 +13,4 @@ class Parser(Component):
|
||||
|
||||
_parser_aliases: dict[str, str]
|
||||
|
||||
def get_parser_class(parser_name: str) -> Type[Parser]: ...
|
||||
def get_parser_class(parser_name: str) -> type[Parser]: ...
|
||||
|
||||
Reference in New Issue
Block a user