Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions stubs/docutils/docutils/core.pyi
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from _typeshed import Incomplete
from _typeshed import Incomplete, StrPath
from typing import Final
from typing_extensions import deprecated

from docutils import SettingsSpec
from docutils.frontend import OptionParser
from docutils.io import FileInput, Input, Output, StringInput
from docutils.io import FileInput, Input, Output
from docutils.parsers import Parser
from docutils.readers import Reader
from docutils.utils import SystemMessage
Expand Down Expand Up @@ -63,9 +63,9 @@ class Publisher:
config_section=None,
**defaults,
) -> None: ...
def set_io(self, source_path=None, destination_path=None) -> None: ...
def set_source(self, source=None, source_path=None) -> None: ...
def set_destination(self, destination=None, destination_path=None) -> None: ...
def set_io(self, source_path: StrPath | None = None, destination_path: StrPath | None = None) -> None: ...
def set_source(self, source=None, source_path: StrPath | None = None) -> None: ...
def set_destination(self, destination=None, destination_path: StrPath | None = None) -> None: ...
def apply_transforms(self) -> None: ...
def publish(
self,
Expand Down Expand Up @@ -104,9 +104,9 @@ def publish_cmdline(
): ...
def publish_file(
source=None,
source_path: FileInput | StringInput | None = None,
source_path: StrPath | None = None,
destination=None,
destination_path: FileInput | StringInput | None = None,
destination_path: StrPath | None = None,
reader=None,
reader_name: str = "standalone",
parser=None,
Expand All @@ -121,8 +121,8 @@ def publish_file(
): ...
def publish_string(
source,
source_path: FileInput | StringInput | None = None,
destination_path: FileInput | StringInput | None = None,
source_path: StrPath | None = None,
destination_path: StrPath | None = None,
reader=None,
reader_name: str = "standalone",
parser=None,
Expand All @@ -137,9 +137,9 @@ def publish_string(
): ...
def publish_parts(
source,
source_path: FileInput | StringInput | None = None,
source_path: StrPath | None = None,
source_class=...,
destination_path: FileInput | StringInput | None = None,
destination_path: StrPath | None = None,
reader=None,
reader_name: str = "standalone",
parser=None,
Expand All @@ -154,7 +154,7 @@ def publish_parts(
) -> _WriterParts: ...
def publish_doctree(
source,
source_path: FileInput | StringInput | None = None,
source_path: StrPath | None = None,
source_class=...,
reader=None,
reader_name: str = "standalone",
Expand All @@ -168,7 +168,7 @@ def publish_doctree(
): ...
def publish_from_doctree(
document,
destination_path: FileInput | StringInput | None = None,
destination_path: StrPath | None = None,
writer=None,
writer_name: str = "pseudoxml",
settings=None,
Expand Down Expand Up @@ -198,10 +198,10 @@ def publish_cmdline_to_binary(
def publish_programmatically(
source_class: type[FileInput],
source,
source_path: FileInput | StringInput,
source_path: StrPath | None,
destination_class,
destination,
destination_path: FileInput | StringInput,
destination_path: StrPath | None,
reader,
reader_name: str,
parser,
Expand Down