fix typing
This commit is contained in:
parent
b779ed6a93
commit
50375a5fda
5
.github/workflows/get_info.py
vendored
5
.github/workflows/get_info.py
vendored
@ -10,7 +10,10 @@ import rtoml
|
||||
|
||||
sys.path.append(os.path.abspath(os.curdir))
|
||||
|
||||
from Difficult_Rocket import DR_status
|
||||
try:
|
||||
from Difficult_Rocket import DR_status
|
||||
except ImportError:
|
||||
raise
|
||||
|
||||
args = ['-env', '-github-dev']
|
||||
|
||||
|
2
DR.py
2
DR.py
@ -43,7 +43,7 @@ def start(start_time_ns: int) -> None:
|
||||
main_game.start()
|
||||
if DR_status.crash_report_test:
|
||||
raise TestError('debug crash test')
|
||||
except:
|
||||
except: # noqa: E722
|
||||
trace = traceback.format_exc()
|
||||
crash.create_crash_report(trace)
|
||||
print(trace)
|
||||
|
@ -11,23 +11,23 @@ github: @shenjackyuanjie
|
||||
gitee: @shenjackyuanjie
|
||||
"""
|
||||
|
||||
import time
|
||||
# import time
|
||||
import logging
|
||||
import traceback
|
||||
# import traceback
|
||||
import logging.config
|
||||
import multiprocessing
|
||||
|
||||
from io import StringIO
|
||||
from pathlib import Path
|
||||
# from io import StringIO
|
||||
# from pathlib import Path
|
||||
from typing import List, Optional, Dict
|
||||
|
||||
from Difficult_Rocket.utils import tools
|
||||
# from Difficult_Rocket.utils import tools
|
||||
from Difficult_Rocket.api.types import Options
|
||||
from Difficult_Rocket.utils.translate import tr
|
||||
from Difficult_Rocket.runtime import DR_runtime
|
||||
# from Difficult_Rocket.utils.translate import tr
|
||||
# from Difficult_Rocket.runtime import DR_runtime
|
||||
from Difficult_Rocket.mod.loader import ModManager
|
||||
from Difficult_Rocket.utils.thread import new_thread
|
||||
from Difficult_Rocket.crash import write_info_to_cache
|
||||
# from Difficult_Rocket.crash import write_info_to_cache
|
||||
from Difficult_Rocket import client, server, DR_status
|
||||
|
||||
|
||||
|
@ -14,7 +14,7 @@ from typing import List, Dict, Optional, TypeVar
|
||||
|
||||
from Difficult_Rocket.mod.api import ModInfo
|
||||
from Difficult_Rocket.utils.translate import tr
|
||||
from Difficult_Rocket.api.types import Options, Version
|
||||
from Difficult_Rocket.api.types import Options
|
||||
|
||||
Game = TypeVar('Game')
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
|
||||
from typing import Tuple, Optional
|
||||
|
||||
from pyglet.gl import gl_compat, gl
|
||||
from pyglet.gl import gl
|
||||
from pyglet.math import Mat4, Vec3
|
||||
from pyglet.graphics import Group
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
# All rights reserved
|
||||
# -------------------------------
|
||||
|
||||
from .lib import *
|
||||
from .lib import * # noqa: F403
|
||||
|
||||
from typing import TYPE_CHECKING, Dict, Tuple, Optional, List
|
||||
|
||||
|
@ -8,4 +8,4 @@
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
if not TYPE_CHECKING:
|
||||
from .Difficult_Rocket_rs import *
|
||||
from .Difficult_Rocket_rs import * # noqa: F403
|
||||
|
Loading…
Reference in New Issue
Block a user