Revert part of "fix pycharm hints" that broke something

This commit is contained in:
OMGeeky
2024-05-31 15:38:44 +02:00
parent f07db4c88e
commit 70b1d1e94f

View File

@@ -1294,13 +1294,11 @@ def string_impl(p):
def unique(
original: str,
desired: str,
attempts: int = 0,
assigned=None,
original: str,
desired: str,
attempts: int = 0,
assigned: dict[str, str] = {},
) -> str:
if assigned is None:
assigned = {}
if original in assigned:
return assigned[original]
candidate = desired + ("" if attempts == 0 else str(attempts))