Skip to content

Commit

Permalink
pygments: Type setup(app) param
Browse files Browse the repository at this point in the history
Co-authored-by: danieleades <[email protected]>
  • Loading branch information
tony and danieleades committed Mar 9, 2024
1 parent b3af292 commit 634cf7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stubs/Pygments/pygments/sphinxext.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from docutils.parsers.rst import Directive
from sphinx.application import Sphinx

Check failure on line 2 in stubs/Pygments/pygments/sphinxext.pyi

View workflow job for this annotation

GitHub Actions / Test typeshed with pyright (Linux, 3.11)

Import "sphinx.application" could not be resolved (reportMissingImports)

MODULEDOC: str
LEXERDOC: str
Expand All @@ -11,4 +12,4 @@ class PygmentsDoc(Directive):
def document_formatters(self) -> str: ...
def document_filters(self) -> str: ...

def setup(app) -> None: ...
def setup(app: Sphinx) -> None: ...

0 comments on commit 634cf7a

Please sign in to comment.