Skip to content

Commit

Permalink
test: add python 3.8 type annotation support
Browse files Browse the repository at this point in the history
  • Loading branch information
unexcellent committed Oct 29, 2024
1 parent 38114c0 commit b9becfc
Show file tree
Hide file tree
Showing 25 changed files with 50 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_attributes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_bbox.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_cuboid.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_element_data_pointer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_frame.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from decimal import Decimal
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_frame_interval.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_intrinsics_pinhole.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_intrinsics_radar.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_metadata.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_num.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_object.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import random
import sys
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_object_annotation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_object_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_point2d.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_point3d.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_poly2d.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_poly3d.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_quaternion.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_scene.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_seg3d.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
import typing as t
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_sensor_reference.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from decimal import Decimal
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_size2d.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_size3d.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down
2 changes: 2 additions & 0 deletions tests/test_raillabel/format/test_transform.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Copyright DB InfraGO AG and contributors
# SPDX-License-Identifier: Apache-2.0

from __future__ import annotations

import os
import sys
from pathlib import Path
Expand Down

0 comments on commit b9becfc

Please sign in to comment.