[issue44791] Substitution of ParamSpec in Concatenate

2022-02-20 Thread Mehdi2277
Mehdi2277 added the comment: Concatenate[int, ...] I would interpret as a function signature with first argument int, followed by arbitrary arguments afterwards. I haven't run into this case, but ... is allowed in other spots Paramspec is allowed currently. P = Paramspec("P&qu

[issue46743] Enable usage of object.__orig_class__ in __init__

2022-02-13 Thread Mehdi2277
Mehdi2277 added the comment: Hmm, I actually have code that does something very similar to that. But it does not set it in `__init__` and instead uses it in a property where it is available. Tweaking your code, ```py class DefaultBox(Generic[T]): def __init__(self, value: T | None

[issue45384] Accept Final as indicating ClassVar for dataclass

2022-01-20 Thread Mehdi2277
Mehdi2277 added the comment: I recently hit this issue working on a config/parsing runtime type checking library (similar in spirit to pydantic). The one other special typeform I was using these with that led me to discover this issue was Annotated. I use Annotated a fair amount to do some

[issue46195] Annotated and Optional get_type_hints buggy interaction

2021-12-29 Thread Mehdi2277
Change by Mehdi2277 : -- type: -> behavior ___ Python tracker <https://bugs.python.org/issue46195> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue46195] Annotated and Optional get_type_hints buggy interaction

2021-12-29 Thread Mehdi2277
New submission from Mehdi2277 : This is two closely related issues with get_type_hints on an optional annotated member. I'm testing with Annotated/get_type_hints from typing extensions on 3.8 and assuming they're backport equivalent to current behavior. The first issue is get_type