Skip to content

Commit

Permalink
union not supported by python3.9 without from __future__ import annot…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
luigiberducci committed Feb 23, 2024
1 parent a2bff3f commit c8ea7b2
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions gym/f110_gym/envs/base_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
Replacement of the old RaceCar, Simulator classes in C++
Author: Hongrui Zheng
"""
from __future__ import annotations
import numpy as np
from f110_gym.envs.dynamic_models import DynamicModel
from f110_gym.envs.action import CarAction
Expand Down
1 change: 1 addition & 0 deletions gym/f110_gym/envs/laser_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
Prototype of Utility functions and classes for simulating 2D LIDAR scans
Author: Hongrui Zheng
"""
from __future__ import annotations
import unittest

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions gym/f110_gym/envs/observation.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from abc import abstractmethod
from typing import List

Expand Down
1 change: 1 addition & 0 deletions gym/f110_gym/envs/rendering/objects.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import cv2
import numpy as np
import pygame
Expand Down
3 changes: 2 additions & 1 deletion gym/f110_gym/envs/rendering/renderer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from __future__ import annotations
import pathlib
from abc import abstractmethod, ABC
from dataclasses import dataclass
from typing import Callable, Optional, Any
from typing import Optional, Any

import numpy as np
import yaml
Expand Down
1 change: 1 addition & 0 deletions gym/f110_gym/envs/rendering/rendering_pygame.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import logging
import math
from typing import Any, Callable, Optional
Expand Down
1 change: 1 addition & 0 deletions gym/f110_gym/envs/reset/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
from f110_gym.envs.reset.masked_reset import GridResetFn, AllTrackResetFn
from f110_gym.envs.reset.reset_fn import ResetFn
from f110_gym.envs.track import Track
Expand Down
2 changes: 1 addition & 1 deletion gym/f110_gym/envs/reset/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import numpy as np

from f110_gym.envs.track import Track, Raceline
from f110_gym.envs.track import Raceline


def sample_around_waypoint(
Expand Down
1 change: 1 addition & 0 deletions gym/f110_gym/envs/track/cubic_spline.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Code from Cubic spline planner
Author: Atsushi Sakai(@Atsushi_twi)
"""
from __future__ import annotations
import bisect
import math

Expand Down
1 change: 1 addition & 0 deletions gym/f110_gym/envs/track/raceline.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import pathlib
from typing import Optional

Expand Down
1 change: 1 addition & 0 deletions gym/f110_gym/envs/track/track.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from __future__ import annotations
import pathlib
from dataclasses import dataclass
from typing import Tuple, Optional
Expand Down

0 comments on commit c8ea7b2

Please sign in to comment.