Stewori / pytypes

Typing-toolbox for Python 3 _and_ 2.7 w.r.t. PEP 484.
Apache License 2.0
200 stars 20 forks source link

Issue #89: add tests for partial annotations. #90

Closed sjjessop closed 4 years ago

sjjessop commented 4 years ago

Three of these tests fail. The fourth (staticmethod) is there for completeness. In typing this, I realise I never tested a property deleter. But I was already stretching credibility, testing property getters and setters with default parameters, since you can't pass values for them via attribute access.

All tests pass with pytypes.infer_default_value_types = False.

The assertRaises calls are just there so that these tests don't consider "enforce nothing" to be a valid fix.

Stewori commented 4 years ago

Perfect. This looks very good. Thanks for the help. I will merge it after merging the fix.