Skip to content

Commit f1611f8

Browse files
committed
Add some attributes to remove IDE errors and simplify development
1 parent f1e8167 commit f1611f8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

flask_mongoengine/db_fields.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ def __init__(
7676
self.validators = self._ensure_callable_or_list(validators, "validators")
7777
self.filters = self._ensure_callable_or_list(filters, "filters")
7878

79+
# Some attributes that will be updated by parent methods
80+
self.required = False
81+
self.default = None
82+
self.name = ""
83+
7984
super().__init__(**kwargs)
8085

8186
@staticmethod

0 commit comments

Comments
 (0)