mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
improve type annotations in 'docutils.frontend' (#12735)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
This commit is contained in:
@@ -4,7 +4,7 @@ from collections.abc import Iterable, Mapping
|
||||
from configparser import RawConfigParser
|
||||
from typing import Any, ClassVar
|
||||
|
||||
from docutils import Component, SettingsSpec
|
||||
from docutils import SettingsSpec
|
||||
from docutils.utils import DependencyList
|
||||
|
||||
__docformat__: str
|
||||
@@ -112,7 +112,7 @@ class OptionParser(optparse.OptionParser, SettingsSpec):
|
||||
version_template: ClassVar[str]
|
||||
def __init__(
|
||||
self,
|
||||
components: Iterable[Component] = (),
|
||||
components: Iterable[SettingsSpec | type[SettingsSpec]] = (),
|
||||
defaults: Mapping[str, Any] | None = None,
|
||||
read_config_files: bool | None = False,
|
||||
*args,
|
||||
|
||||
Reference in New Issue
Block a user