matperc

Results 16 comments of matperc

Hi all, I also have this problem. I'm running Debian 10 with 4.19.191-rt80 and when the connection is lost ec_receive_processdata() blocks for at least 4ms (probably related to system timer...

Good, I will work on this

> While ParamSpec and Concatenate both are added to typing in 3.10, they exist in typing_extensions which is available for all Python versions since 3.7. Thanks for the info. I...

While with `pyright` there aren't errors, `mypy` throw this: ``` Argument 3 to "read_async" of "File" has incompatible type "Callable[[Optional[Object], AsyncResult], None]"; expected "Optional[Callable[[Optional[Object], AsyncResult, VarArg(), KwArg()], None]]" [arg-type] ```...

It seems that the problem lays on `Optional` ```python from typing import Concatenate, ParamSpec, Callable P = ParamSpec("P") def func1(func: Callable[Concatenate[str, P], None], *args): pass def func2(a: str, b: str):...

> did you try other type checkers like for example pyright? With pyright works fine. In the PR I linked an issue that is similar. I have added some comments,...

> The question for me is, you wrote the MR is blocked by that mypy issue. > > Personally for me thats not blocking, there exist at least one type...

I am not sure I am following. It's correct for `__init__` to take 0 arguments. It only allows kwargs arguments.

We already discussed it [here](https://github.com/pygobject/pygobject-stubs/issues/72#issuecomment-1474297340). I am on mobile right now, if your solution works I thinks it is a good idea

The fail is here `generate.py:491` ```python signature = str(inspect.signature(function)) ``` This the output from python ```python >>> str(inspect.signature(Gtk.Table.attach)) '(self, child, left_attach, right_attach, top_attach, bottom_attach, xoptions=, yoptions=, xpadding=0, ypadding=0)' ``` I...