Skip to content

Commit 971e8bd

Browse files
move colon out of enum value
1 parent b014798 commit 971e8bd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/django_bird/manifest.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
class PathPrefix(str, Enum):
1919
"""Path prefixes used for normalizing template paths."""
2020

21-
PKG = "pkg:"
22-
APP = "app:"
23-
EXT = "ext:"
21+
PKG = "pkg"
22+
APP = "app"
23+
EXT = "ext"
2424

2525
def prepend_to(self, path: str) -> str:
2626
"""Generate a prefixed path string by prepending this prefix to a path.
@@ -31,7 +31,7 @@ def prepend_to(self, path: str) -> str:
3131
Returns:
3232
str: A string with this prefix and the path
3333
"""
34-
return f"{self.value}{path}"
34+
return f"{self.value}:{path}"
3535

3636
@classmethod
3737
def has_prefix(cls, path: str) -> bool:
@@ -43,7 +43,7 @@ def has_prefix(cls, path: str) -> bool:
4343
Returns:
4444
bool: True if the path starts with any of the recognized prefixes
4545
"""
46-
return any(path.startswith(prefix.value) for prefix in cls)
46+
return any(path.startswith(f"{prefix.value}:") for prefix in cls)
4747

4848

4949
def normalize_path(path: str) -> str:

0 commit comments

Comments
 (0)