Strongtyping

Latest version: v3.12.1

Safety actively analyzes 682361 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 9

2.5

> adder(2, 5)


python
from typing import MutableMapping

from requests.structures import CaseInsensitiveDict
from strongtyping.strong_typing import match_typing


match_typing(allow_duck_typing=True)
def foobar(x: MutableMapping):
...

foobar(CaseInsensitiveDict())

2.2.3

What's Changed
* Bump joblib from 1.0.1 to 1.2.0 in /docs by dependabot in https://github.com/FelixTheC/strongtyping/pull/101
* close: 105 recursionerror by FelixTheC in https://github.com/FelixTheC/strongtyping/pull/106


**Full Changelog**: https://github.com/FelixTheC/strongtyping/compare/v2.2.2...v2.2.3

2.2.2

What's Changed
Add: allow duck_typing

- with `allow_duck_typing = True` I will use the mypy behavior for int and float as described here https://mypy.readthedocs.io/en/stable/duck_type_compatibility.html for others I will search if they have the same superclass besides `object` and `type`
- without `allow_duck_typing` or `allow_duck_typing=False` I will have an exact match of the types

python
from strongtyping.strong_typing import match_typing


match_typing(allow_duck_typing=True)
def adder(x: int, y: float):
return x + y


passes

2.2.1

- amitshahar
- Added option to custom the error message

2.2.0

- amitshahar
- Added option to custom the error message

python_3.10.0_12.12.2021
release for Python 3.10 only

2.1.42

Page 3 of 9

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.