Skip to content

Commit

Permalink
[cfr_json_colab] Remove the use of typing.Self.
Browse files Browse the repository at this point in the history
Sadly, typing.Self is a Python 3.11 feature, and public Colab runtimes are
stuck at 3.10. Other uses are not reachable from our Colab, and thus do not
need to be changed.
  • Loading branch information
ondrasej committed Jul 4, 2024
1 parent daa13e8 commit ddcb2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/gmpro/two_step_routing/_parking.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import copy
import dataclasses
import functools
from typing import Any, Self, TypeAlias
from typing import Any, TypeAlias

from ..json import cfr_json

Expand Down Expand Up @@ -106,7 +106,7 @@ class InitialLocalModelGrouping:
)

@classmethod
def from_string(cls, options: str) -> Self:
def from_string(cls, options: str) -> "InitialLocalModelGrouping":
"""Creates the grouping specification from command-line flags.
Args:
Expand Down

0 comments on commit ddcb2bc

Please sign in to comment.