This commit is contained in:
Vithor Jaeger 2022-09-19 16:43:53 -04:00
parent 892b68f0aa
commit 4688b5bfd9
2 changed files with 12 additions and 4 deletions

View File

@ -1,5 +1,6 @@
from __future__ import annotations
from abc import ABC
from typing import Union
import datetime
from pocketbase.utils import to_datetime
@ -7,8 +8,8 @@ from pocketbase.utils import to_datetime
class BaseModel(ABC):
id: str
created: Union[str, datetime.datetime]
updated: Union[str, datetime.datetime]
created: str | datetime.datetime
updated: str | datetime.datetime
def __init__(self, data: dict = {}) -> None:
super().__init__()

View File

@ -28,9 +28,16 @@ dynamic = ["readme", "version"]
[tool.poetry]
name = "pocketbase"
version = "0.1.1"
version = "0.1.2"
description = "PocketBase SDK for python."
authors = ["Vithor Jaeger <vaphes@gmail.com>"]
readme = "README.md"
homepage = "https://github.com/vaphes/pocketbase"
repository = "https://github.com/vaphes/pocketbase"
keywords = ["pocketbase", "sdk"]
[tool.poetry.urls]
"Bug Tracker" = "https://github.com/vaphes/pocketbase/issues"
[tool.poetry.dependencies]
python = "^3.10"