Skip to content

Commit

Permalink
replaced tuple with typing.Tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
legopitstop committed Oct 28, 2024
1 parent 8588918 commit d821cae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mcpath/utils.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from typing import Union
from typing import Union, Tuple
import os
import datetime
import json
import requests


def _version_to_component(mcversion) -> Union[tuple[str, int], tuple[None, None]]:
def _version_to_component(mcversion) -> Union[Tuple[str, int], Tuple[None, None]]:
res = requests.get("https://launchermeta.mojang.com/mc/game/version_manifest.json")
if res.status_code != 200:
return None, None
Expand Down

0 comments on commit d821cae

Please sign in to comment.