Fix mypy errors for arithmetic analysis algorithms (#4053)

This commit is contained in:
Dhruv Manilawala
2020-12-23 15:22:43 +05:30
committed by GitHub
parent 2ff2ccbeec
commit ad5108d6a4
5 changed files with 90 additions and 60 deletions

View File

@ -1,19 +1,14 @@
"""
Checks if a system of forces is in static equilibrium.
python/black : true
flake8 : passed
mypy : passed
"""
from typing import List
from __future__ import annotations
from numpy import array, cos, cross, radians, sin # type: ignore
from numpy import array, cos, cross, radians, sin
def polar_force(
magnitude: float, angle: float, radian_mode: bool = False
) -> list[float]:
) -> List[float]:
"""
Resolves force along rectangular components.
(force, angle) => (force_x, force_y)