Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

address some more type errors#15114

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
danieleades wants to merge1 commit intopython:main
base:main
Choose a base branch
Loading
fromdanieleades:docutils.2

Conversation

@danieleades
Copy link
Contributor

based on findings insphinx-doc/sphinx#13634

should be retested after that PR is merged

@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

Diff frommypy_primer, showing the effect of this PR on open source code:

sphinx (https://github.com/sphinx-doc/sphinx)+ sphinx/transforms/__init__.py: note: In class "SphinxSmartQuotes":+ sphinx/transforms/__init__.py:368:5: error: Cannot override instance variable (previously declared on base class "SmartQuotes") with class variable  [misc]+ sphinx/util/rst.py:69: error: Unused "type: ignore" comment  [unused-ignore]+ sphinx/util/docutils.py: note: In member "write" of class "SphinxFileOutput":+ sphinx/util/docutils.py:456:5: error: Signature of "write" incompatible with supertype "docutils.io.FileOutput"  [override]+ sphinx/util/docutils.py:456:5: note:      Superclass:+ sphinx/util/docutils.py:456:5: note:          @overload+ sphinx/util/docutils.py:456:5: note:          def write(self, data: str) -> str | bytes+ sphinx/util/docutils.py:456:5: note:          @overload+ sphinx/util/docutils.py:456:5: note:          def write(self, data: bytes) -> bytes+ sphinx/util/docutils.py:456:5: note:      Subclass:+ sphinx/util/docutils.py:456:5: note:          def write(self, data: str) -> str+ sphinx/util/docutils.py: note: At top level:+ sphinx/util/docutils.py:472: error: Unused "type: ignore" comment  [unused-ignore]+ sphinx/util/docutils.py: note: In member "write" of class "SphinxFileOutput":+ sphinx/util/docutils.py:472:16: error: Incompatible return value type (got "str | bytes", expected "str")  [return-value]+ sphinx/util/docutils.py:472:16: note: Error code "return-value" not covered by "type: ignore" comment+ sphinx/directives/__init__.py:333: error: Unused "type: ignore" comment  [unused-ignore]

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@danieleades

[8]ページ先頭

©2009-2025 Movatter.jp