Skip to content
Snippets Groups Projects
Commit ee809d60 authored by Henrik tom Wörden's avatar Henrik tom Wörden
Browse files

Merge branch 'f-type-hints' into 'dev'

Add type hints to models.py

See merge request !67
parents c5f23b65 b8b2047c
No related branches found
No related tags found
2 merge requests!143Release 0.15.0,!67Add type hints to models.py
Pipeline #49248 passed with warnings
......@@ -24,6 +24,10 @@
#
import re
import sys
if sys.version_info >= (3, 8):
from typing import Literal
from ..exceptions import EmptyUniqueQueryError, QueryNotUniqueError
......@@ -34,6 +38,8 @@ DATETIME = "DATETIME"
INTEGER = "INTEGER"
FILE = "FILE"
BOOLEAN = "BOOLEAN"
if sys.version_info >= (3, 8):
DATATYPE = Literal["DOUBLE", "REFERENCE", "TEXT", "DATETIME", "INTEGER", "FILE", "BOOLEAN"]
def LIST(datatype):
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment