Annotation complexity should not fail on expressions
See original GitHub issueBug report
This code:
def some() -> 'test expression':
...
Makes flake8-annotation-complexity
to fail. We need to ignore this case silently.
Related: #1170
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Java static code analysis: Expressions should not be too ...
A single expression's complexity should not become too high to keep the code readable. Noncompliant Code Example. With the default threshold value of...
Read more >Annotations for enforcing cyclomatic complexity and LCOM ...
Is anyone aware of a group of annotations and configurable annotation processor(s) that can be run from the compiler, and which will make...
Read more >Modeling the Complexity of Manual Annotation Tasks
One difficulty concerns multi-word expressions that the campaign ... complexity of relational annotations should not be underestimated: even if annotators ...
Read more >Allow type annotation on catch clause variable #20024 - GitHub
I'm fine with allowing only a single catch so as not to change the behavior of javascript, but I think it's perfectly in...
Read more >Annotations in Java - GeeksforGeeks
Annotations are not pure comments as they can change the way a program is treated by the compiler. See below code for example....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sobolevn thank you for so useful answer!
@leksuss we cannot control why people would do that. But, we know that they will. And our goal is to help them not to make this mistake.
I appreciate your help! Thanks a lot! Since this one is the first PR for you, here are the steps:
You can find the information about running tests here: https://github.com/wemake-services/wemake-python-styleguide/blob/master/CONTRIBUTING.md