diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ab6ce0498..8838b6f07 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -231,7 +231,7 @@ jobs: - name: Install client run: pip install *.whl - - run: pip install mypy + - run: pip install mypy==1.18.1 - run: stubtest aerospike --allowlist stubtest-allowlist diff --git a/aerospike-stubs/aerospike.pyi b/aerospike-stubs/aerospike.pyi index ec951bef0..fdb350cdc 100644 --- a/aerospike-stubs/aerospike.pyi +++ b/aerospike-stubs/aerospike.pyi @@ -311,11 +311,11 @@ TXN_STATE_ABORTED: Literal[3] @final class CDTInfinite: - def __init__(self, *args, **kwargs) -> None: ... + def __init__(self) -> None: ... @final class CDTWildcard: - def __init__(self, *args, **kwargs) -> None: ... + def __init__(self) -> None: ... @final class Transaction: @@ -459,7 +459,7 @@ class Scan: @final class null: - def __init__(self, *args, **kwargs) -> None: ... + def __init__(self) -> None: ... def calc_digest(ns: str, set: str, key: Union[str, int, bytearray]) -> bytearray: ... def client(config: dict) -> Client: ...