Jun Komoda
Jun Komoda
## Memo for type hint symbols ### Question: Does it require backward compatibility with generic-alias for builtin classes, related to PEP585? ### Answer: No, "There are currently no plans to...
## Memo for type variable ### `IUnknown.QueryInterface` is useful for casting ```py from typing import Optional from typing import Type # depreciated in >= Py3.9, see PEP585. from typing import...
## Memo for `Pointer` policies ### If `def somefunc()` returns instance that type is `POINTER(IUnknown)` in runtime, it will be `def somefunc() -> IUnknown` #### Because it is not a...
> * `ctypes.pointer` behaves like generics with type stubs, even though it is not generics at runtime. Currently, `ctypes.pointer` is defined as function in the type stub as well as...
I thought what to do about the problem of `COMError` and `CopyComPointer` being `Unknown` because there is no type stub for `_ctypes`. I posted an issue to `typeshed` for adding...
The `Array` was also `Unknown` because it was imported from `_ctypes`. I will submit a PR to change the `Array` import from `_ctypes` to import from `ctypes` since both are...
PEP585 will be updated. see python/peps#2778
@bennyrowland I also thought a situation like your issue was problematic. I didn't really have a problem with it because I don't use the `server` feature in my project. Recently...
@bennyrowland @cfarrow Thank you guys for replies and opinions. I completely agree that it is better to do things explicitly. However, backward compatibility is the only problem I had, and...
@bennyrowland @cfarrow I agree with the major version update. Look at the history, it has only been revision updates for the last 8 years!