-
**Describe the bug**
Generation of list/array of discriminated union annotates the list, not the union. Same problem with `= Field(..., discriminator)` too if you don't use annotated.
**To Repro…
-
`def get_collection_of_primitive_values(self, primitive_type: Any) -> Optional[List[T]]:` inside `JsonParseNode` takes `primitive_type: Any`, however we raise an error if `primitive_type` is not of ty…
-
### Apache Airflow version
Other Airflow 2 version (please specify below)
### If "Other Airflow 2 version" selected, which one?
2.6.2
### What happened?
I have created a DAG which I want to sched…
-
**Bug Report**
When using `key` function in `min` builtin function, default None value and returning it from a function which has an `Optional` type, mypy reports a problem where I believe there is…
-
* cattrs version: 1.8.0 (attrs 21.2.0)
* Python version: 3.9.7
* Operating System: Windows 10
### Description
When using recursive types (see example below), `structure` with `GenConverter` ra…
aha79 updated
2 years ago
-
I have a model with a relation that's optional, however when I use $relatedQuery to get the relation, the return type is not optional. I put together a small project to demonstrate!
Snippet from pr…
-
Currently when displaying the list of clipboard items, it is possible to jump to a particular item by typing a unique prefix string. However there are a few possibilities which would significantly imp…
-
Reading through the spec and `asgiref/typing.py` I noticed that `NotRequired` was used for a few fields, but far from all fields that aren't required. It seems that `state` got marked as `NotRequired`…
-
Hi,
I love this library, but it is a bit frustrating to interact with it when trying to use typed Python.
I want to know if there is interest in adding type hints, at least to the API.
As an …
-
Typing an attribute in a base class with `ClassVar[Optional[Callable]]` results in a type error even though the typing is seemingly sound.
**To Reproduce**
Playground: https://mypy-play.net/?myp…