Mypy|Pyright plugin and stubs for assertpy
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
assertpy_stubs-1.1.0.tar.gz
(16.5 kB
view hashes)
Built Distribution
Close
Hashes for assertpy_stubs-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af7309fb032b3dc4656453976a84f9aad3f066bcf32a0fc64c02728d77392707 |
|
MD5 | e8ca03bbe8f4c7e21121312ccbfe5671 |
|
BLAKE2b-256 | f0bd12afa89960d27d664afaefc714c8cbe2b515892d395454b58580a630bb5d |