Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 04c8d9d

Browse files
committed
Fixed linter
1 parent 2351511 commit 04c8d9d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/pylint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ jobs:
2828
pip install pylint
2929
- name: Analysing the code with pylint
3030
run: |
31-
pylint src
31+
pylint --init-hook="import sys; sys.path.append('.')" src
32+

src/physics/kinetic.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

3-
import typing
4-
from typing import override
3+
from typing import override, TYPE_CHECKING
54
from copy import copy
65
import math
76
import random
@@ -17,7 +16,7 @@
1716
from .universe_utils import UNIT_SIZE, astro_to_gui_distance, G_CONST
1817

1918

20-
if typing.TYPE_CHECKING:
19+
if TYPE_CHECKING:
2120
from typing import Tuple
2221

2322

src/physics/universe.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
from __future__ import annotations
22

33
import math
4-
import typing
54

5+
from typing import TYPE_CHECKING
66
from physics import kinetic
77
from graphics import manager
88
from utils.utility import Singleton
99
from utils.vector import Vector
1010

1111
from . import universe_utils
1212

13-
if typing.TYPE_CHECKING:
13+
if TYPE_CHECKING:
1414
from physics.kinetic import Kinetic, AstroObject
1515

1616

0 commit comments

Comments
 (0)