assertpy-stubs


Nameassertpy-stubs JSON
Version 1.1.2 PyPI version JSON
download
home_pagehttps://github.com/socgnachilderic/assertpy-stubs
SummaryMypy|Pyright plugin and stubs for assertpy
upload_time2024-07-15 15:15:52
maintainerSOCGNA KOUYEM Childeric
docs_urlNone
authorSOCGNA KOUYEM Childeric
requires_python>=3.9
licenseMIT
keywords mypy pyright assertpy stubs
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![PyPI version](https://badge.fury.io/py/assertpy-stubs.svg)](https://badge.fury.io/py/assertpy-stubs)
[![Code on Github](https://img.shields.io/badge/Code-GitHub-brightgreen)](https://github.com/socgnachilderic/assertpy-stubs)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
![GitHub last commit](https://img.shields.io/github/last-commit/socgnachilderic/assertpy-stubs)

# assertpy-stubs

Add types for [assertpy](https://pypi.org/project/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:

```python
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](https://medium.com/analytics-vidhya/type-annotations-in-python-3-8-3b401384403d)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/socgnachilderic/assertpy-stubs",
    "name": "assertpy-stubs",
    "maintainer": "SOCGNA KOUYEM Childeric",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "socgnachilderic@proton.me",
    "keywords": "mypy, pyright, assertpy, stubs",
    "author": "SOCGNA KOUYEM Childeric",
    "author_email": "socgnachilderic@proton.me",
    "download_url": "https://files.pythonhosted.org/packages/6c/3b/3832442ad7969999a89977efc1cbad44d0eb9159d013735fcc7e90c21742/assertpy_stubs-1.1.2.tar.gz",
    "platform": null,
    "description": "[![PyPI version](https://badge.fury.io/py/assertpy-stubs.svg)](https://badge.fury.io/py/assertpy-stubs)\n[![Code on Github](https://img.shields.io/badge/Code-GitHub-brightgreen)](https://github.com/socgnachilderic/assertpy-stubs)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n![GitHub last commit](https://img.shields.io/github/last-commit/socgnachilderic/assertpy-stubs)\n\n# assertpy-stubs\n\nAdd types for [assertpy](https://pypi.org/project/assertpy/) for mypy or pyright.\n\n## Installation\n\n```\n$ pip install assertpy-stubs\n```\n\n## Usage\n\nMypy or pyright will automatically use the type annotations in this package, once it is\ninstalled. You just need to annotate your code:\n\n```python\nfrom assertpy import assert_that\n\n\ndef test_something():\n    assert_that(1 + 2).is_equal_to(3)\n    assert_that(\"foobar\").is_length(6).starts_with(\"foo\").ends_with(\"bar\")\n    assert_that([\"a\", \"b\", \"c\"]).contains(\"a\").does_not_contain(\"x\")\n```\n\nFor general hints how to use type annotations, please read [Type Annotations in Python 3.8](https://medium.com/analytics-vidhya/type-annotations-in-python-3-8-3b401384403d)\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Mypy|Pyright plugin and stubs for assertpy",
    "version": "1.1.2",
    "project_urls": {
        "Homepage": "https://github.com/socgnachilderic/assertpy-stubs",
        "Repository": "https://github.com/socgnachilderic/assertpy-stubs"
    },
    "split_keywords": [
        "mypy",
        " pyright",
        " assertpy",
        " stubs"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "75b06242328172653f7b6d3dedc520cd41319fdbcb8126494aa6934955bb0a27",
                "md5": "b5bf660737c99b6b2490d4278eb16447",
                "sha256": "3cfff48f5953ab78908d7f899d788ffb1371d50f8d7d7cbea0db17cabd03b6c5"
            },
            "downloads": -1,
            "filename": "assertpy_stubs-1.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b5bf660737c99b6b2490d4278eb16447",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 22590,
            "upload_time": "2024-07-15T15:15:50",
            "upload_time_iso_8601": "2024-07-15T15:15:50.877011Z",
            "url": "https://files.pythonhosted.org/packages/75/b0/6242328172653f7b6d3dedc520cd41319fdbcb8126494aa6934955bb0a27/assertpy_stubs-1.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6c3b3832442ad7969999a89977efc1cbad44d0eb9159d013735fcc7e90c21742",
                "md5": "d3a0d79a6adaaa301f0c4f6b0bb8e5d2",
                "sha256": "3d73f0bb23ab0509801648e3d1f22d3adbc7f0919d92f0838f05f59ace34fd6e"
            },
            "downloads": -1,
            "filename": "assertpy_stubs-1.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "d3a0d79a6adaaa301f0c4f6b0bb8e5d2",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 16129,
            "upload_time": "2024-07-15T15:15:52",
            "upload_time_iso_8601": "2024-07-15T15:15:52.306375Z",
            "url": "https://files.pythonhosted.org/packages/6c/3b/3832442ad7969999a89977efc1cbad44d0eb9159d013735fcc7e90c21742/assertpy_stubs-1.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-15 15:15:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "socgnachilderic",
    "github_project": "assertpy-stubs",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "assertpy-stubs"
}
        
Elapsed time: 9.72272s