Browse Source

Automatic formatting commit: 2020-04-07T10:41:34.219834

Getty Ritter 4 years ago
parent
commit
e78fc6e3e4
4 changed files with 13 additions and 2 deletions
  1. 8 1
      stubs/peewee.py
  2. 1 0
      stubs/playhouse/sqlite_ext.py
  3. 3 1
      stubs/pystache/loader.py
  4. 1 0
      tasks.py

+ 8 - 1
stubs/peewee.py

@@ -1,9 +1,12 @@
 from typing import Any, Optional, TypeVar, Type, List
 
+
 class Expression:
     pass
 
-T = TypeVar('T', bound='Model')
+
+T = TypeVar("T", bound="Model")
+
 
 class Model:
     id: int
@@ -24,15 +27,19 @@ class Model:
     def select(self, expr: Optional[Expression] = None):
         pass
 
+
 # These all do things that MyPy chokes on
 def TextField() -> Any:
     pass
 
+
 def DateTimeField() -> Any:
     pass
 
+
 def BooleanField() -> Any:
     pass
 
+
 def ForeignKeyField(key: object, null: bool = None, backref: str = "") -> Any:
     pass

+ 1 - 0
stubs/playhouse/sqlite_ext.py

@@ -1,5 +1,6 @@
 import typing
 
+
 class SqliteExtDatabase:
     def __init__(self, path: typing.Optional[str]):
         pass

+ 3 - 1
stubs/pystache/loader.py

@@ -1,4 +1,6 @@
 from typing import List
 
+
 class Loader:
-    def __init__(self, extension: str, search_dirs: List[str]): pass
+    def __init__(self, extension: str, search_dirs: List[str]):
+        pass

+ 1 - 0
tasks.py

@@ -42,6 +42,7 @@ def populate(c):
     """Populate the test database with fake-ish data"""
     c.run("PYTHONPATH=$(pwd) poetry run python3 ./scripts/populate.py")
 
+
 @task
 def tc(c):
     """Populate the test database with fake-ish data"""