-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typing graphing and camera #4125
base: main
Are you sure you want to change the base?
Typing graphing and camera #4125
Conversation
updates: - [github.com/astral-sh/ruff-pre-commit: v0.9.1 → v0.9.2](astral-sh/ruff-pre-commit@v0.9.1...v0.9.2)
@@ -26,6 +28,12 @@ | |||
def __init__(self, custom_labels: bool = False): | |||
self.custom_labels = custom_labels | |||
|
|||
@overload | |||
def function(self, value: float) -> float: ... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
def function(self, value: float) -> float: ... | ||
|
||
@overload | ||
def function(self, value: np.array) -> np.array: ... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
@@ -14,6 +14,7 @@ | |||
from manim.mobject.geometry.shape_matchers import SurroundingRectangle | |||
|
|||
from ... import config | |||
from ...camera.moving_camera import MovingCamera |
Check failure
Code scanning / CodeQL
Module-level cyclic import Error
manim.camera.moving_camera
manim.mobject.types.image_mobject
definition
import
'MovingCamera' may not be defined if module
manim.camera.moving_camera
manim.mobject.types.image_mobject
definition
import
'MovingCamera' may not be defined if module
manim.camera.moving_camera
manim.mobject.types.image_mobject
definition
import
6b8f27d
to
f767e8a
Compare
@@ -29,6 +31,10 @@ | |||
from ..utils.iterables import list_difference_update | |||
from ..utils.space_ops import angle_of_vector | |||
|
|||
if TYPE_CHECKING: | |||
from ..mobject.types.image_mobject import AbstractImageMobject |
Check failure
Code scanning / CodeQL
Module-level cyclic import Error
manim.mobject.types.image_mobject
manim.camera.camera
definition
import
'AbstractImageMobject' may not be defined if module
manim.mobject.types.image_mobject
manim.camera.camera
definition
import
'AbstractImageMobject' may not be defined if module
manim.mobject.types.image_mobject
manim.camera.camera
definition
import
'AbstractImageMobject' may not be defined if module
manim.mobject.types.image_mobject
manim.camera.camera
definition
import
'AbstractImageMobject' may not be defined if module
manim.mobject.types.image_mobject
manim.camera.camera
definition
import
return self.point_to_coords(point) | ||
|
||
@staticmethod | ||
def _origin_shift(axis_range: Sequence[float]) -> float: ... |
Check notice
Code scanning / CodeQL
Statement has no effect Note
from manim.typing import StrPath | ||
from manim.typing import PixelArray, StrPath | ||
|
||
from ...camera.moving_camera import MovingCamera |
Check failure
Code scanning / CodeQL
Module-level cyclic import Error
manim.camera.moving_camera
manim.mobject.types.image_mobject
definition
import
'MovingCamera' may not be defined if module
manim.camera.moving_camera
manim.mobject.types.image_mobject
definition
import
'MovingCamera' may not be defined if module
Overview: What does this pull request change?
Adding type annotations for files in mobject/graphing/.* and camera/.*