Skip to content

Commit

Permalink
Added imports of Any and Dict for mypy.
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricbonhomme committed Jan 20, 2024
1 parent 932d6e2 commit d04161b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mosp/api/v2/object.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#! /usr/bin/env python
import logging
from typing import Any
from typing import Dict
from typing import List

import sqlalchemy.exc
Expand Down Expand Up @@ -171,10 +173,10 @@ def get(self):
@auth_func
def post(self):
"""Create a new object"""
result = {
result: Dict[Any, Any] = {
"data": [],
"metadata": {"count": 0, "offset": 0, "limit": 0},
} # type: Dict[Any, Any]
}
errors: List[int] = []
for obj in object_ns.payload:

Expand Down

0 comments on commit d04161b

Please sign in to comment.