Skip to main content

Mypy|Pyright plugin and stubs for assertpy

Project description

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

Project details


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

assertpy_stubs-1.1.0-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file assertpy_stubs-1.1.0.tar.gz.

File metadata

  • Download URL: assertpy_stubs-1.1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.4 Linux/6.9.7-200.fc40.x86_64

File hashes

Hashes for assertpy_stubs-1.1.0.tar.gz
Algorithm Hash digest
SHA256 9b0905e096d3cb32cecfa65d34299a5fe68f70a047b12f61c8618a338ca2ee83
MD5 1583feb74d680c09655da5a3b2d60e6a
BLAKE2b-256 7567249fa84381cb9908b214450edc8ae012c6704fb6919f114ffeed18c1076a

See more details on using hashes here.

File details

Details for the file assertpy_stubs-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: assertpy_stubs-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 22.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.12.4 Linux/6.9.7-200.fc40.x86_64

File hashes

Hashes for assertpy_stubs-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 af7309fb032b3dc4656453976a84f9aad3f066bcf32a0fc64c02728d77392707
MD5 e8ca03bbe8f4c7e21121312ccbfe5671
BLAKE2b-256 f0bd12afa89960d27d664afaefc714c8cbe2b515892d395454b58580a630bb5d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page