-
```python
decorator: int = 3
@decorator # no error
class A:
pass
class B:
pass
NewB = decorator(B) # E: "int" not callable
```
Mypy doesn't appear to do any checking of class de…
-
The following works with typeguard but not beartype.
```
from typing_extensions import Protocol
from beartype import beartype as typechecker
#from typeguard import typechecked as typechecker…
-
**Bug Report**
`Concatenate`-ing a `TypeVar` in return type of a decorator results in the first constraint being selected.
**To Reproduce**
```python
from __future__ import annotations
from…
-
Many CLIs allow loading configuration from a path or environment, but they also do allow overriding some values thanks to `options`.
This could be an improvement to the currently available CLI by a…
-
Take this example:
```python
@contextlib.contextmanager
def noop(x):
yield x
with noop("foobar") as s:
print(type(s)) # prints
```
The type of `s` is `str`, because `noop` yiel…
-
Hi, I have a usecase that ingests ONNX models, and needs to convert to PyTorch then export a traced graph (via `torch.export.export()`).
After converting ONNX to torch (via `onnx2torch.convert()`),…
-
I am trying to get the tutorial running locally but seem to hit an issue with the first cell block.
```python
import ibis
con = ibis.connect("duckdb://nycflights13.ddb")
con.create_table(
…
-
I found a bug when I attempt to mix metaclasses w/ `dataclassy`. Here is what I was doing:
```python
@abstractdataclass
class ConverterAPI(Generic[ABIType]):
...
@abstractmethod
de…
-
Pyre claims to try to match compatibility with `mypy`, which has a documented usage of decorators that Pyre can't seem to handle (tested in version 0.0.57).
See here: https://mypy.readthedocs.io/en…
-
Any plans to allow [runtime type enforcing](https://github.com/RussBaz/enforce)?
I attempted to use the enforce decorator `@runtime_validation` but for the `data` types (coconut named tuples, while e…