From: Thomas Stephenson Date: Sat, 17 May 2025 01:48:37 +0000 (+1000) Subject: Fix mypy error X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4563b63895b86b86513c0976d31399316991d95;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Fix mypy error - `count` is not accepted as a keyword argument to str.replace in python < 3.13 --- diff --git a/lib/sqlalchemy/dialects/postgresql/bitstring.py b/lib/sqlalchemy/dialects/postgresql/bitstring.py index d796bcb696..7b731f6676 100644 --- a/lib/sqlalchemy/dialects/postgresql/bitstring.py +++ b/lib/sqlalchemy/dialects/postgresql/bitstring.py @@ -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,