Skip to content

Commit

Permalink
Shrink dict lines
Browse files Browse the repository at this point in the history
  • Loading branch information
dcamron committed Nov 14, 2023
1 parent df0db34 commit 0fe46ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/metpy/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ def version_check(version_spec):
bool : Whether the installed package validates against the provided specification
"""
comparison_operators = {
'==': op.eq, '=': op.eq, '!=': op.ne,
'<': op.lt, '<=': op.le,
'>': op.gt, '>=': op.ge,
'==': op.eq, '=': op.eq, '!=': op.ne, '<': op.lt, '<=': op.le, '>': op.gt, '>=': op.ge,
}

# Match version_spec for groups of module name,
Expand Down

0 comments on commit 0fe46ed

Please sign in to comment.