Skip to content

Commit

Permalink
Fix: Set default value in FindInterface._inheritance_inited to avoid …
Browse files Browse the repository at this point in the history
…AttributeError in _add_class_id_filter method (#935)

Fixed error raised when in "FindInterface._add_class_id_filter" method (line 458) when a attempt to acess the value from "FindInterface._inheritance_inited"
  • Loading branch information
Robert-Nogueira committed Jun 18, 2024
1 parent 7cb0a2b commit dcd73a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beanie/odm/interfaces/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class FindInterface:
_find_one_query_class: ClassVar[Type] = FindOne
_find_many_query_class: ClassVar[Type] = FindMany

_inheritance_inited: bool
_inheritance_inited: bool = False
_class_id: ClassVar[Optional[str]]
_children: ClassVar[Dict[str, Type]]

Expand Down

0 comments on commit dcd73a7

Please sign in to comment.