]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Fix mypy error
authorThomas Stephenson <ovangle@gmail.com>
Sat, 17 May 2025 01:48:37 +0000 (11:48 +1000)
committerThomas Stephenson <ovangle@gmail.com>
Sat, 17 May 2025 01:48:37 +0000 (11:48 +1000)
- `count` is not accepted as a keyword argument to str.replace in python < 3.13

lib/sqlalchemy/dialects/postgresql/bitstring.py

index d796bcb69684dd128ad8bb939046bd65ace9a657..7b731f667692fc503624c7b8ffc5839dab409bb2 100644 (file)
@@ -177,7 +177,7 @@ class BitString(str):
         count: SupportsIndex = -1,
     ) -> BitString:
         new = BitString(new)
-        return BitString(super().replace(old, new, count=count), False)
+        return BitString(super().replace(old, new, count), False)
 
     def split(
         self,