Skip to content

[docutils] Fix issue with *_path params #14383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2025
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy