-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add(mongoengine): missing queryset methods (#8)
Some notable ones: modify, upsert_one, explain Fix some param names and types. Also add flake8-pyi to check the stubs for errors, but pyright might already cover it.
- Loading branch information
Showing
5 changed files
with
93 additions
and
14 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
class _ServerMode: ... | ||
class Primary(_ServerMode): ... | ||
class PrimaryPreferred(_ServerMode): ... | ||
class Secondary(_ServerMode): ... | ||
class SecondaryPreferred(_ServerMode): ... | ||
class Nearest(_ServerMode): ... | ||
|
||
class ReadPreference: | ||
NEAREST: object | ||
PRIMARY: object | ||
PRIMARY_PREFERRED: object | ||
SECONDARY: object | ||
SECONDARY_PREFERRED: object | ||
NEAREST: Nearest | ||
PRIMARY: Primary | ||
PRIMARY_PREFERRED: PrimaryPreferred | ||
SECONDARY: Secondary | ||
SECONDARY_PREFERRED: SecondaryPreferred |