Skip to content

Commit d0a8e96

Browse files
committed
Use getitem dunder for StatementHandlerRegistry
1 parent b09dc81 commit d0a8e96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonbpf/functions/func_registry_handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ def decorator(handler):
1717
return decorator
1818

1919
@classmethod
20-
def get_handler(cls, stmt_type):
20+
def __getitem__(cls, stmt_type):
2121
"""Get the handler for a specific statement type."""
2222
return cls._handlers.get(stmt_type, None)

0 commit comments

Comments
 (0)