Skip to content

Commit 2235bae

Browse files
authored
Merge pull request #684 from Labelbox/jtso/pytest_updates
[AL-0] Updates to reduce the number of deprecation warnings
2 parents 20fe6b7 + 8086d16 commit 2235bae

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

labelbox/data/annotation_types/classification/classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ class Dropdown(_TempName):
8282
answer: List[ClassificationAnswer]
8383

8484
def __init__(self, **data: Any):
85+
super().__init__(**data)
8586
warnings.warn("Dropdown classification is deprecated and will be "
8687
"removed in a future release")
87-
super().__init__(**data)

labelbox/data/annotation_types/data/raster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def __repr__(self) -> str:
187187

188188
class Config:
189189
# Required for sharing references
190-
copy_on_model_validation = False
190+
copy_on_model_validation = 'none'
191191
# Required for discriminating between data types
192192
extra = 'forbid'
193193

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[pytest]
2-
addopts = -s -vv -x --reruns 5 --reruns-delay 10 --durations=100
2+
addopts = -s -vv -x --reruns 5 --reruns-delay 10 --durations=20
33
markers =
44
slow: marks tests as slow (deselect with '-m "not slow"')

0 commit comments

Comments
 (0)