add type annotations

This commit is contained in:
2025-10-02 01:43:05 +05:30
parent 429f51437f
commit 23f3cbcea7
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
from .helper_utils import HelperHandlerRegistry
from .bpf_helper_handler import handle_helper_call
__all__ = [HelperHandlerRegistry, handle_helper_call]
__all__ = ["HelperHandlerRegistry", "handle_helper_call"]

View File

@ -1,5 +1,7 @@
import ast
import logging
from collections.abc import Callable
from llvmlite import ir
from pythonbpf.expr_pass import eval_expr
@ -9,7 +11,7 @@ logger = logging.getLogger(__name__)
class HelperHandlerRegistry:
"""Registry for BPF helpers"""
_handlers = {}
_handlers: dict[str, Callable] = {}
@classmethod
def register(cls, helper_name):