Skip to content

Commit 08fdff0

Browse files
committed
chore: Make ruff happy
1 parent 88910e6 commit 08fdff0

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

src/sphinxnotes/render/ctxnodes.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,12 @@
55
from docutils.parsers.rst.states import Inliner
66

77
from .render import Template
8-
from .ctx import PendingContextRef, PendingContext, PendingContextStorage, ResolvedContext
8+
from .ctx import (
9+
PendingContextRef,
10+
PendingContext,
11+
PendingContextStorage,
12+
ResolvedContext,
13+
)
914
from .markup import MarkupRenderer
1015
from .template import TemplateRenderer
1116
from .utils import (

src/sphinxnotes/render/render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Phase(Enum):
2121
Resolving = 'resolving'
2222

2323
@classmethod
24-
def default(cls) -> Phase:
24+
def default(cls) -> 'Phase':
2525
return cls.Parsing
2626

2727

tests/roots/test-ctxdir-usage/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from sphinx.application import Sphinx
22
from sphinxnotes.render import ParsedData, BaseContextDirective, Template, Phase
33

4+
45
class MyDirective(BaseContextDirective):
56
def current_context(self):
67
return ParsedData('Shengyu Zhang', {}, None)

0 commit comments

Comments
 (0)