Skip to content

Commit adf2b6f

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent d1a0cd2 commit adf2b6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sphinx_external_toc/api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,22 @@
1616
#: Pattern used to match URL items.
1717
URL_PATTERN: str = r".+://.*"
1818

19+
1920
@dataclass(**DC_SLOTS)
2021
class FileItem:
2122
"""A document path in a toctree list.
2223
2324
This should be in POSIX format (folders split by ``/``), relative to the
2425
source directory, and can be with or without an extension.
2526
"""
27+
2628
path: str = field(validator=[instance_of(str)])
2729
title: Optional[str] = field(default=None, validator=optional(instance_of(str)))
28-
30+
2931
def __post_init__(self):
3032
validate_fields(self)
3133

34+
3235
class GlobItem(str):
3336
"""A document glob in a toctree list."""
3437

0 commit comments

Comments
 (0)