attrs-strict icon indicating copy to clipboard operation
attrs-strict copied to clipboard

Provides runtime validation of attributes specified in Python 'attr'-based data classes.

Results 4 attrs-strict issues
Sort by recently updated
recently updated
newest added

Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from 1.8.12 to 1.8.14. Release notes Sourced from pypa/gh-action-pypi-publish's releases. v1.8.14 🛠️ Internal Dependencies Nothing changed feature-wise. The only notable update is that the underlying container runtime now...

dependencies

Here's a snipped for a class decorator `define_strict` which makes all fields strict. I can prepare a PR if you are interested. ```py3 import attrs from attrs_strict import type_validator def...

**Describe the bug** 3.10 introduced [PEP-604](https://peps.python.org/pep-0604/) which allows writing unions as `X | Y` over `Union[X, Y]`. However, internally the type of such annotation is not `typing.Union`, it's `types.UnionType`. `attrs-strict`...

enhancement
help wanted

Currently, the `isinstance` check doesn't work with anything existing in the typing module. For example, you can't do the following: ```python from typing import Dict x = {'a': 'b'} isinstance(x,...

help wanted
Feature