-
I have the following decorator:
```
from typing import Type, Any
def generate_str(cls: Type) -> Type:
"""
Class decorator that auto generates __str__().
:param cls: class to modify…
-
### Description
Based on the PR https://github.com/apify/apify-sdk-python/pull/171, @janbuchar suggested the usage of some run-time checking for Python.
E.g. [typeguard](https://github.com/agron…
-
### Subject of the issue
A possible amelioration would be the usage of a `as_form` decorator to mark a schema as `Form`.
See https://stackoverflow.com/questions/60127234/how-to-use-a-pydantic-mode…
-
### Initial Checks
- [X] I have searched Google & GitHub for similar requests and couldn't find anything
- [X] I have read and followed [the docs](https://docs.pydantic.dev) and still think this f…
-
### Steps to reproduce
See following code:
```python
import astroid
node = astroid.extract_node(
"""
import typing
typing.Tuple[int] #@
""")
for inferred in node.infer():…
yilei updated
2 years ago
-
## Introduction
Relevant to https://github.com/edgedb/edgedb/issues/4272 , having decorators for handling mutation and action triggers would be very beneficial for developers writing client-facing so…
-
```py
from typing import TypeVar, TypeAlias
T = TypeVar("T")
MaybeList = T | list[T] # error: Type variable "__main__.T" is invalid as target for type alias
MaybeList2: TypeAlias = T | list[T]…
-
### Bug description
```python
from typing import Callable, Concatenate, ParamSpec, TypeVar
S = TypeVar('S')
P = ParamSpec('P')
RealFun = Callable[Concatenate[S, P], None]
FunWithEvent = Callabl…
-
One of my components crashes on page load due to recent type hint changes in `django_unicorn.components.unicorn_view.UnicornView._attribute_names()` of version 0.58.0 ([commit 8a9448793](https://githu…
-
This is an attempt to centralize discussion about using `@(warnings/typing_extensions).deprecated()` in typeshed to convey "typing-only" deprecations, not just runtime-related ones. I'm currently tryi…