Fix mypy issues with new version of numpy 1.22.0
Mypy finds following issues with the latest version of numpy, that is 1.22.0:
pyxel\models\charge_measurement\nghxrg\nghxrg_beta.py:303: error: No overload variant of "rfftfreq" matches argument type "int"
pyxel\models\charge_measurement\nghxrg\nghxrg_beta.py:303: note: Possible overload variants:
pyxel\models\charge_measurement\nghxrg\nghxrg_beta.py:303: note: def rfftfreq(n: Union[int, integer[Any]], d: Union[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any]]]], _NestedSequence[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any]]]]], bool, int, float, _NestedSequence[Union[bool, int, float]]]) -> ndarray[Any, dtype[floating
[Any]]]
pyxel\models\charge_measurement\nghxrg\nghxrg_beta.py:303: note: def rfftfreq(n: Union[int, integer[Any]], d: Union[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any], complexfloating[Any, Any]]]], _NestedSequence[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any], complexfloating[Any, Any]]]]], bool, int, float, complex, _NestedSeq
uence[Union[bool, int, float, complex]]]) -> ndarray[Any, dtype[complexfloating[Any, Any]]]
pyxel\models\charge_measurement\nghxrg\nghxrg_beta.py:304: error: No overload variant of "rfftfreq" matches argument type "int"
pyxel\models\charge_measurement\nghxrg\nghxrg_beta.py:304: note: Possible overload variants:
pyxel\models\charge_measurement\nghxrg\nghxrg_beta.py:304: note: def rfftfreq(n: Union[int, integer[Any]], d: Union[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any]]]], _NestedSequence[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any]]]]], bool, int, float, _NestedSequence[Union[bool, int, float]]]) -> ndarray[Any, dtype[floating
[Any]]]
pyxel\models\charge_measurement\nghxrg\nghxrg_beta.py:304: note: def rfftfreq(n: Union[int, integer[Any]], d: Union[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any], complexfloating[Any, Any]]]], _NestedSequence[_SupportsArray[dtype[Union[bool_, integer[Any], floating[Any], complexfloating[Any, Any]]]]], bool, int, float, complex, _NestedSeq
uence[Union[bool, int, float, complex]]]) -> ndarray[Any, dtype[complexfloating[Any, Any]]]
pyxel\models\charge_generation\tars\util.py:44: error: Argument 1 has incompatible type "ndarray[Any, Any]"; expected "Sequence[float]"
pyxel\notebook\jupyxel.py:218: error: Incompatible types in assignment (expression has type "ndarray[Any, Any]", variable has type "int")
pyxel\models\photon_generation\stripe_pattern.py:91: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "List[Any]")
pyxel\models\charge_generation\tars\particle.py:230: error: Incompatible types in assignment (expression has type "floating[Any]", variable has type "Optional[float]")
pyxel\models\charge_generation\tars\simulation.py:469: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[floating[Any]]]", variable has type "List[int]")
pyxel\models\charge_generation\tars\simulation.py:470: error: Incompatible types in assignment (expression has type "ndarray[Any, dtype[Any]]", variable has type "List[Any]")
Found 8 errors in 6 files (checked 124 source files)