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,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):