Skip to content

Commit

Permalink
Enable UP and apply last unsafe-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hoxbro committed Aug 14, 2024
1 parent bd16622 commit 20ea6c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spatialpandas/geometry/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def construct_from_string(cls, string):
raise TypeError(
f"'construct_from_string' expects a string, got {type(string)}")

msg = "Cannot construct a '%s' from '{}'" % cls.__name__
msg = f"Cannot construct a '{cls.__name__}' from '{{}}'"
if string.startswith(cls._geometry_name.lower()):
# Extract subtype
try:
Expand Down
2 changes: 1 addition & 1 deletion spatialpandas/tools/sjoin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def _record_reset_index(df, suffix):
df.index = df.index.rename(new_column_name[0])
except TypeError:
new_column_name = [
"index_%s" % suffix + str(l) for l, ix in
f"index_{suffix}{l}" for l, ix in
enumerate(df.index.names)
]
old_index_name = df.index.names
Expand Down

0 comments on commit 20ea6c9

Please sign in to comment.