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