Closed Ashark closed 8 months ago
This is an interesting thought. In your case, only functions/methods with annotations are enforced. If you remove annotations, then the types are not enforced.
Regarding a negation, this may prove tricky. I like the idea. Let me look into it.
I have decorated the whole class with this:
This is convenient, because I do not need to add this decorator to each class's method.
But sometimes I want to disable the decoration for the specific method, while still keeping the decoration for all other methods (again, for convenience). For example, it may be useful for false positive detection workarounding.
Is it possible to "undecorate" the specific method? Something like this: