-
I encountered an issue while using the dataclasses-avroschema package for Avro serialization in Python. When attempting to serialize and deserialize a dataclass with a union type using dataclasses_avr…
-
Using relative config files in dicts doesn't work. It might be that I'm not using the correct syntax tho
### To reproduce
3 files in the same directory
1) `cli.py`
```
from jsonargparse impor…
-
for some reason my program throws this error rooted in this lib. when i try to simply overload the __init__ of my class.
Code:
```
from overloading import overload
import cmath
class Quaternion…
-
I tried using some `beartype.vale.Is`, but failed many times because of conflicts with `annotated_types`.
I really didn't want to create separate `Annotated` typed for each library (`beartype` & `pyd…
-
**Bug Report**
On **python 3.11** using **StrEnum**, if converting given enum to a list and assigning to a variable, mypy will wrongly assumes that given variable will be `list[str]`, not `list[Str…
-
To prevent an unscrupulous user from defining their own operation with hazardous code and sending an HTTP request which calls the **init** function and blows everything up.
-
# Description
I noticed [this line](https://github.com/intellimath/recordclass/compare/0.21.1...0.22#diff-d4d3d67c82812828be70a9e249591aac95c3bdae3617fe3cd13fd7bae1308fdfR25) in the recent release …
-
**Bug Report**
Since https://github.com/python/mypy/issues/5865 was fixed, the following code now type checks:
```python3
from typing import Any, Type
def f(typ: Type[Any]) -> Type[A…
-
Hey,
Great job there, i’m wondering if you plan to support proper python typing ?
I’m happy to provide very easily a sync interface to my library unfortunately, everything mypy related is broken …
-
> 早在2019年年中我就已经知道了Python3.5中有类型注解的存在了,但我个人使用中只局限于用默认类型,如`int`和`str`等。而同时期如`prompt-toolkit`(ipython的核心)的源码中早已经使用到了更加复杂化的`Iterable`或者是`List`这样的类型注解。当时我记得我好像是测试失败了就没有再使用了……
## 简单的类型注解
与目前其他语言一样,Pytho…