Uh oh!
There was an error while loading. Please reload this page.
Add type hints to the whole project and mypy testing setup and CI - #125
Add type hints to the whole project and mypy testing setup and CI#125Kircheneer wants to merge 16 commits into
Conversation
51e7310 to
1b1d356CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
itdependsnetworks
commented
Jul 11, 2022
Interesting, failing only in 3.7 with: This may be why you added banner_end, but I don't see why it is needed. |
Kircheneer
commented
Jul 11, 2022
Probably, I just ran
I would say the latter is better because we save on an import and a little complexity. What do you think @itdependsnetworks ? |
itdependsnetworks
commented
Jul 11, 2022
I would just disable abstract-method / W0223 on those classes. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| # Split VLAN config if lines are too long | ||
| first_line = re.match(f"^.{{0,{first_line_len}}}(?=,)", vlan_cfg) | ||
| if not first_line: | ||
| raise ValueError(f"Parsing VLAN list with first_line_len={first_line_len} yielded no regex results.") |
There was a problem hiding this comment.
Can we make this a little more network engineer readable and less software engineer readable?
There was a problem hiding this comment.
@jeffkala I'm going to need your help on this one because you understand the business logic better, can you give a suggestion to make this error message a little friendlier to everyone? I think not even the software engineer will be able to do something with this 🤦🏻
Uh oh!
There was an error while loading. Please reload this page.
itdependsnetworks
commented
Jul 15, 2022
Addressed in #129 |
Addressing review comments from #123