Skip to content

Commit

Permalink
Chore: Fix code after upgrading ruff linter
Browse files Browse the repository at this point in the history
E721 Use `is` and `is not` for type comparisons, or `isinstance()` for
isinstance checks.
  • Loading branch information
amotl committed Jul 10, 2024
1 parent 88f0f97 commit d764a8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skeem/ddlgen/reshape.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def use_this_pk(self, pk_name, key_type):
More graceful version which will ignore errors on `int` type PKs,
and fall back to the effective type instead.
"""
if key_type == int:
if key_type is int:
try:
all_max = max([0] + all_values_for(self, pk_name))
self.pk = UniqueKey(pk_name, key_type, max=all_max)
Expand Down

0 comments on commit d764a8b

Please sign in to comment.