Skip to content

Commit 3dc223e

Browse files
committed
chore: add runtime_checkable attribute to Parser protocol for backwards compatibility
1 parent 5f99264 commit 3dc223e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

backend-patterns

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 9f568b416e0533b0e652e1d9f3656f9c9f11a5b1

src/cli_patterns/ui/parser/protocols.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ def get_suggestions(self, partial: str) -> list[str]:
5656
...
5757

5858

59-
# Ensure runtime_checkable attribute is available for tests
59+
# Explicitly set the runtime checkable attribute for older Python versions
60+
Parser.__runtime_checkable__ = True

0 commit comments

Comments
 (0)