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.1.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.1-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: assertpy_stubs-1.1.1.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for assertpy_stubs-1.1.1.tar.gz
Algorithm Hash digest
SHA256 4b1203a213467fee867c12222dc360b7e84e000a183fb106b6509aef639543cb
MD5 7ce5c249380385037a243b80a587a9db
BLAKE2b-256 50f04a5c6a175a52462969ca59f8b76482d71365230149a117ed08c275e9472b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: assertpy_stubs-1.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for assertpy_stubs-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eeba710345719f63165a5c44e3fa785d5b46e09cbab5c443df57e64575e4986a
MD5 40c3e99e45842de6a1e80e04391916e2
BLAKE2b-256 96e50cbc0c8921ce065b402d1f8b323ecc36b487f1d01247e8bdc352e2b6fc64

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