fix: type hint for keyword-only parameter for_update
[skip ci]
This commit is contained in:
parent
567cfda0e3
commit
93a8c37977
1 changed files with 1 additions and 1 deletions
|
|
@ -1225,7 +1225,7 @@ def get_doc(doctype: str, /) -> _SingleDocument:
|
|||
|
||||
|
||||
@overload
|
||||
def get_doc(doctype: str, name: str, /, for_update: bool | None = None) -> "Document":
|
||||
def get_doc(doctype: str, name: str, /, *, for_update: bool | None = None) -> "Document":
|
||||
"""Retrieve DocType from DB, doctype and name must be positional argument."""
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue