Browse Source

ref: add extremely incomplete sqlparse stubs (#85180)

this is the only function we use fortunately

<!-- Describe your PR here. -->
anthony sottile 3 weeks ago
parent
commit
777dbafd31
2 changed files with 3 additions and 1 deletions
  1. 3 0
      fixtures/stubs-for-mypy/sqlparse/__init__.pyi
  2. 0 1
      pyproject.toml

+ 3 - 0
fixtures/stubs-for-mypy/sqlparse/__init__.pyi

@@ -0,0 +1,3 @@
+from typing import Any
+
+def format(sql: str, encoding: str | None = ..., **kwargs: Any) -> str: ...

+ 0 - 1
pyproject.toml

@@ -99,7 +99,6 @@ module = [
     "onelogin.saml2.constants.*",
     "onelogin.saml2.idp_metadata_parser.*",
     "rb.*",
-    "sqlparse.*",
     "statsd.*",
     "u2flib_server.model.*",
 ]