-
```bash
python3 basic_example.py
```
Output
```text
The response of add_vertex:
Result: Status: 0, message: OK, value: {'message': 'Vertex data is successfully inserted'}
exception: 1 vali…
-
Now that we are using typing, we could replace `aiida/common/lang.py::type_check` with a decorator, to test against the types.
Something like this: https://github.com/prechelt/typecheck-decorator
-
**Crash Report**
I'm developing an cache decorator that uses ParamSpec to be as generic as possible.
There's a slight bug in my code (I used `Sequence` where I should have used `Paramspec.args`), …
-
### 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 feat…
-
* cattrs version: 24.1.0
* Python version: 3.11.9
* Operating System: Ubuntu 22.04
### Description
I am using the [decorator pattern](https://en.wikipedia.org/wiki/Decorator_pattern) to genera…
-
Humble thought that I don't have time to implement.
It seems like there is increasing interest in being able to identify which objects which objects in a namespace are plans. See #1476 and `bluesky…
-
```python
from typing import Any
# This comes from a third-party library.
def decorator() -> Any: ...
class C:
@decorator()
def method(self) -> None:
reveal_type(self) # re…
-
I've not tested it, so the simple case miiight just work (though I doubt it). I'm pretty sure the interesting cases won't work out of the box.
[PEP 612](https://www.python.org/dev/peps/pep-0612/) int…
-
### 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…
-
**Feature**
Support `disallow_untyped_decorators` option for 3rd party libraries
Example:
```
[mypy-pytest-asyncio]
disallow_untyped_decorators = false
```
**Pitch**
Example
pytest de…