Skip to content

Commit

Permalink
Remove bad option
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyhedral committed Jul 26, 2023
1 parent 79d69d7 commit 08f0f4f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
with:
# force: "patch"
# push: "true"
additional_options: "--patch -vv"
additional_options: "--patch"
github_token: ${{ secrets.GITHUB_TOKEN }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}
Expand Down
3 changes: 2 additions & 1 deletion src/sweetrpg_model_core/convert/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import json
from .date import to_datetime
from sweetrpg_model_core.model.base import BaseModel
from typing import Optional


def convert_document_property_value(value):
Expand All @@ -31,7 +32,7 @@ def convert_document_property_value(value):
return value


def to_model(doc, model_class) -> BaseModel:
def to_model(doc, model_class) -> Optional[BaseModel]:
"""Convert a database document to a model instance.
:param Document doc: The input document to convert. This instance must have a to_json() function
Expand Down

0 comments on commit 08f0f4f

Please sign in to comment.