Skip to content

Commit aecc944

Browse files
author
Matt Sokoloff
committed
mypy
1 parent f8e35e0 commit aecc944

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ test-staging: build
66
docker run -it -v ${PWD}:/usr/src -w /usr/src \
77
-e LABELBOX_TEST_ENVIRON="staging" \
88
-e LABELBOX_TEST_API_KEY_STAGING=${LABELBOX_TEST_API_KEY_STAGING} \
9-
local/labelbox-python:test pytest $(PATH_TO_TEST) -svvx
9+
local/labelbox-python:test pytest $(PATH_TO_TEST) -svv
1010

1111
test-prod: build
1212
docker run -it -v ${PWD}:/usr/src -w /usr/src \

labelbox/client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# type: ignore
12
from datetime import datetime, timezone
23
import json
34
import logging

labelbox/schema/data_row_metadata.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# type: ignore
2-
32
import datetime
43
from enum import Enum
54
from itertools import chain

mypy.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ ignore_missing_imports = True
99

1010
[mypy-labelbox.data.*]
1111
ignore_errors = True
12+
13+
[mypy-labelbox]
14+
ignore_errors = True

tests/integration/conftest.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import os
22
import re
3+
import uuid
4+
import time
35
from collections import namedtuple
46
from datetime import datetime
57
from enum import Enum
@@ -11,10 +13,13 @@
1113

1214
from labelbox import Client
1315
from labelbox import LabelingFrontend
14-
from labelbox.orm.query import results_query_part
16+
from labelbox.orm import query
17+
from labelbox.schema.annotation_import import MALPredictionImport
18+
from labelbox.orm.db_object import Entity, DbObject
1519
from labelbox.pagination import PaginatedCollection
1620
from labelbox.schema.invite import Invite
1721
from labelbox.schema.user import User
22+
from labelbox import OntologyBuilder, Tool
1823

1924
IMG_URL = "https://picsum.photos/200/300"
2025

@@ -69,7 +74,7 @@ def get_project_invites(client, project_id):
6974
project(where: {id: $%s}) {id
7075
invites(from: $from, first: $first) { nodes { %s
7176
projectInvites { projectId projectRoleName } } nextCursor}}}
72-
""" % (id_param, id_param, results_query_part(Invite))
77+
""" % (id_param, id_param, query.results_query_part(Invite))
7378
return PaginatedCollection(client,
7479
query_str, {id_param: project_id},
7580
['project', 'invites', 'nodes'],

0 commit comments

Comments
 (0)