assertpy-stubs
Add types for assertpy for mypy or pyright.
Installation
$ pip install assertpy-stubs
Usage
Mypy or pyright will automatically use the type annotations in this package, once it is installed. You just need to annotate your code:
from assertpy import assert_that
def test_something():
assert_that(1 + 2).is_equal_to(3)
assert_that("foobar").is_length(6).starts_with("foo").ends_with("bar")
assert_that(["a", "b", "c"]).contains("a").does_not_contain("x")
For general hints how to use type annotations, please read Type Annotations in Python 3.8
Metadata
Release files for assertpy-stubs 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| assertpy_stubs-1.1.2.tar.gz | 16.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| assertpy_stubs-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.7 kB
Release files / assertpy_stubs-1.1.2.tar.gz
| Download URL | assertpy_stubs-1.1.2.tar.gz |
|---|---|
| Size | 16.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d73f0bb23ab0509801648e3d1f22d3adbc7f0919d92f0838f05f59ace34fd6e
|
|
BLAKE2b-256 checksum How to use checksums |
6c3b3832442ad7969999a89977efc1cbad44d0eb9159d013735fcc7e90c21742
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / assertpy_stubs-1.1.2-py3-none-any.whl
| Download URL | assertpy_stubs-1.1.2-py3-none-any.whl |
|---|---|
| Size | 22.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3cfff48f5953ab78908d7f899d788ffb1371d50f8d7d7cbea0db17cabd03b6c5
|
|
BLAKE2b-256 checksum How to use checksums |
75b06242328172653f7b6d3dedc520cd41319fdbcb8126494aa6934955bb0a27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|