Skip to main content

PyPI version Code on Github Code style: black GitHub last commit

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)

Source distribution for assertpy-stubs 1.1.2
File Size Uploaded
assertpy_stubs-1.1.2.tar.gz 16.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for assertpy-stubs 1.1.2
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

1.1.2 This release

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page