Skip to content

Commit

Permalink
Fix and/or precedence issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jorenham committed Aug 27, 2024
1 parent 131fd04 commit 6211a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmo/distributions/_lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def lm_genextreme(
msg = 'fractional trimming'
raise NotImplementedError(msg)

if a < 0 and isinstance(a, int) or a.is_integer():
if a < 0 and (isinstance(a, int) or a.is_integer()):
msg = 'a cannot be a negative integer'
raise ValueError(msg)

Expand Down

0 comments on commit 6211a1c

Please sign in to comment.