-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
101 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# This file is part of Unbeheader. | ||
# Copyright (C) CERN & UNCONVENTIONAL | ||
|
||
from pathlib import Path | ||
from re import Pattern | ||
from typing import Any | ||
from typing import NamedTuple | ||
from typing import TypeAlias | ||
|
||
ConfigDict: TypeAlias = dict[str, Any] | ||
PathCache: TypeAlias = dict[Path, bool] | ||
|
||
|
||
class CommentSkeleton(NamedTuple): | ||
# The string that indicates the start of a comment | ||
comment_start: str | ||
# The string that indicates the continuation of a comment | ||
comment_middle: str | ||
# The string that indicates the end of a comment | ||
comment_end: str | ||
|
||
|
||
class SupportedFileType(NamedTuple): | ||
# A regular expression matching header comments | ||
regex: Pattern[str] | ||
# A dictionary defining the skeleton of comments | ||
comments: CommentSkeleton |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# This file is part of Unbeheader. | ||
# Copyright (C) CERN & UNCONVENTIONAL | ||
|
||
from typing import TypeAlias | ||
|
||
Color: TypeAlias = str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters