-
### Bug Report
MyPy incorrectly asses the type of list comprehensions built from union types. I can't see a way to make this pass typing checks. This and it even affects `TypeVar`. My only option i…
-
Hi there, I was trying out msgspec as an alternative for attrs with cattrs, but I ran into a roadblock with a union type that I have not had a problem with before.
Specifically, I have a message type…
-
### Describe the solution
## `wrangler.toml`
```toml
[vars]
SEND_EMAILS_ENABLED = "false"
[env.preview.vars]
SEND_EMAILS_ENABLED = "true"
[env.production.vars]
SEND_EMAILS_ENABLED = "t…
-
Hi
I'm trying to use Arroyo on a Kafka topic from Confluent. I can successfully set up the connection and get the Avro schema which is stored in the Schema Registry. However, when I try to create a…
-
```
mypy 1.12.0 (compiled: yes)
monai/data/utils.py:562:17: error: Item "ItemsView[Any, Any]" of "Union[Iterator[tuple[Any, Any]], ItemsView[Any, Any], enumerate[Any]]" has no attribute "__next__" …
-
**Describe the bug**
State dataclasses with `Union` types fail to deserialize correctly.
**To Reproduce**
Create a state object with a Union type:
```
from typing import Union
@me.statec…
-
https://github.com/elastic/elasticsearch/pull/111850 and https://github.com/elastic/elasticsearch/pull/112150 add in conversion functions that can be used as union types for date nanos, but they don't…
-
Using an Optional or Union type with the @ValidateParameters decorator works for validation purposes, but it causes a 500 error when accessing the /docs route.
It looks like it may be this functio…
-
- `type`
There is no obvious documentation for the "type" keyword, although it appears early in the tutorial, then in "Usage :: Other options".
In the tutorial, I see:
```
type xlen : Int…
-
```lua
local type nilable = T | nil
local function divide(a: number, b: number): nilable, nilable
if b == 0 then
return nil, "division by zero"
end
return a / b, nil
end
…