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
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
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
Change by Mehdi2277 :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue46195>
___
___
Python-bugs-list mailing list
Unsubscrib
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