Skip to content

Commit d65e8ac

Browse files
authored
Bump peewee to 3.17.9 (#13475)
1 parent 6480b2b commit d65e8ac

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

stubs/peewee/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.17.8"
1+
version = "3.17.9"
22
upstream_repository = "https://github.com/coleifer/peewee"
33
# We're not providing stubs for all playhouse modules right now
44
# https://github.com/python/typeshed/pull/11731#issuecomment-2065729058

stubs/peewee/peewee.pyi

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,7 +1371,7 @@ class ForeignKeyField(Field):
13711371
deferred: Incomplete
13721372
object_id_name: Incomplete
13731373
lazy_load: Incomplete
1374-
constraint_name: Incomplete
1374+
constraint_name: str | None
13751375
def __init__(
13761376
self,
13771377
model,
@@ -1385,7 +1385,7 @@ class ForeignKeyField(Field):
13851385
to_field: Incomplete | None = ...,
13861386
object_id_name: Incomplete | None = ...,
13871387
lazy_load: bool = ...,
1388-
constraint_name: Incomplete | None = ...,
1388+
constraint_name: str | None = ...,
13891389
related_name: Incomplete | None = ...,
13901390
*args,
13911391
**kwargs,
@@ -1399,7 +1399,8 @@ class ForeignKeyField(Field):
13991399
column_name: Incomplete
14001400
safe_name: Incomplete
14011401
def bind(self, model, name, set_attribute: bool = ...) -> None: ...
1402-
def foreign_key_constraint(self): ...
1402+
def foreign_key_constraint(self, explicit_name: bool = False) -> NodeList: ...
1403+
def get_constraint_name(self) -> str: ...
14031404
def __getattr__(self, attr: str): ...
14041405

14051406
class DeferredForeignKey(Field):

0 commit comments

Comments
 (0)