-
At the moment, it is somewhat non-trivial to understand how the code structures, and how the types flow through the code. Many classes and functions are missing docstrings clarifying their intent or t…
-
According to the [Google convention](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html), functions with type hinted arguments do not need to have the types inside the docstri…
-
See example below - typing errors converting Vector to tuple/list/use slices though it is actually possible.
```python
from mathutils import Vector
from typing import assert_type
v = Vector(…
-
**Feature**
It would be very helpful to have a way of specifying that a container type must be non-empty.
**Pitch**
As an example of why this feature would be helpful, consider the following …
-
## Problem
The `__init__.py` is sometimes used to re-export functions and classes defined within sub-modules, generally for visibility within the library and also with the auto-completion. It would b…
-
I'd like to open a discussion about typing for multi-dimensional arrays in general, and more specifically for NumPy. We have already been discussing this over in the NumPy issue tracker (https://githu…
-
Example:
```
import typing
from pytypes import type_util
Container = typing.Union[
typing.List['Data'],
]
Data = typing.Union[
Container,
str, bytes, bool, float, int, dic…
mitar updated
6 years ago
-
Running this line of code:
```py
import beartype
```
I get this:
```py
Traceback (most recent call last):
File "...\_.py", line 2, in
import beartype
File "...\Lib\site-packages\bea…
-
See [how contracts package](https://github.com/AndreaCensi/contracts) are trying to provide support for something similar to shapes. They are extending annotations in a different way than just standar…
mitar updated
8 months ago
-
I can write a .pyi stubs for a library