Skip to content

Instantly share code, notes, and snippets.

View asfaltboy's full-sized avatar

Pavel Savchenko asfaltboy

View GitHub Profile
@asfaltboy
asfaltboy / callable_bug.py
Last active March 22, 2021 21:49
pyright: Callable not a callable bug
from typing import Callable, NamedTuple, Tuple
# class RuleDefinition(NamedTuple):
# pattern: str
# path: str
# check: Callable
RuleDefinition = Tuple[str, str, Callable]