Skip to content

Commit

Permalink
add missing fields unique and unique_with (sbdchd#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
chdsbd authored Apr 16, 2021
1 parent 6417ed0 commit 7e690ce
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mongo-types"
version = "0.8.1"
version = "0.8.2"
description = "Type stubs for mongoengine w/ basic support for bson and pymongo"
repository = "https://github.com/sbdchd/mongo-types"
readme = "README.md"
Expand Down
2 changes: 2 additions & 0 deletions typings/mongoengine/base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ class BaseField:
name: Optional[str] = ...,
required: bool = ...,
default: Union[Any, None, Callable[[], Any]] = ...,
unique: bool = ...,
unique_with: Union[str, Iterable[str]] = ...,
primary_key: bool = ...,
choices: Optional[Iterable[Any]] = ...,
null: bool = ...,
Expand Down
Loading

0 comments on commit 7e690ce

Please sign in to comment.