Qazalbash/jaxampler

Incompatible method overriding

Qazalbash opened this issue · 1 comments

Description

Many classes have incompatible overriding of methods, this is due to the difference in the count of arguments.

jaxampler/jaxampler/_sampler/mhsampler.py:31:9 - error: Method "sample" overrides class "Sampler" in an incompatible manner
    Positional parameter count mismatch; base method has 3, but override has 11 (reportIncompatibleMethodOverride)

The code is working, but the error arises in static type checking by pyright.

What jaxampler version are you using?

nightly

Which accelerator(s) are you using?

CPU

Additional system info?

Linux

NVIDIA GPU info

No response

I created this issue on pyright and according to them the answer is as expected, we have to design somewhat differently.