Skip to content

Commit 4238e13

Browse files
committed
ignore global ANNOTATIONS error
1 parent 1b64aab commit 4238e13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

piccolo_api/fastapi/endpoints.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ def __init__(
121121

122122
self.alias = f"{piccolo_crud.table._meta.tablename}__{id(self)}"
123123

124+
global ANNOTATIONS # noqa: F824
124125
ANNOTATIONS[self.alias]["ModelIn"] = self.ModelIn
125126
ANNOTATIONS[self.alias]["ModelOut"] = self.ModelOut
126127
ANNOTATIONS[self.alias]["ModelOptional"] = self.ModelOptional

0 commit comments

Comments
 (0)