]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
use black 22.8.0
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Oct 2022 21:40:08 +0000 (17:40 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Oct 2022 21:40:08 +0000 (17:40 -0400)
nothing happened moving from 22.3 to 22.8.  a full run of pre-commit
found some little things in the generate_proxy_methods script.

Change-Id: Ie6b4235b87bbfcb252759c0afb133ab8d0cf51db

.pre-commit-config.yaml
tools/generate_proxy_methods.py

index 013b2f9e148f74d01dd60d9dd67beb48768f5d4d..4cb20b06f9a130341b799267ad88d53b95c863e8 100644 (file)
@@ -2,7 +2,7 @@
 # See https://pre-commit.com/hooks.html for more hooks
 repos:
 -   repo: https://github.com/python/black
-    rev: 22.3.0
+    rev: 22.8.0
     hooks:
     -   id: black
 
index 91a8918824c322eee399f0f8f8ac63b6b44555b7..fd20707844b1e249afe9cd5ac7497b76e60e65df 100644 (file)
@@ -154,7 +154,7 @@ def _grab_overloads(fn):
             current_ov[:] = []
             break
 
-        fn_match = re.match(rf"^    (?:async )?def (.*)\($", line)
+        fn_match = re.match(r"^    (?:async )?def (.*)\($", line)
         if fn_match and fn_match.group(1) != fn.__name__:
             current_ov[:] = []
             break
@@ -322,7 +322,7 @@ def process_class(
                 "@%(name)s.setter\n"
                 "def %(name)s(self, attr: %(return_type)s) -> None:\n"
                 "    self._proxied.%(name)s = attr\n\n"
-            ) % {"name": name, "doc": doc, "return_type": return_type}
+            ) % {"name": name, "return_type": return_type}
 
         buf.write(textwrap.indent(code, "    "))