Skip to content

Commit

Permalink
Specify output type for DecimalMatrix.element_to_mobject
Browse files Browse the repository at this point in the history
  • Loading branch information
3b1b committed Feb 8, 2024
1 parent 2966f35 commit 45f8ca7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions manimlib/mobject/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
GenericMatrixType = Union[FloatMatrixType, StringMatrixType, VMobjectMatrixType]



class Matrix(VMobject):
def __init__(
self,
Expand Down Expand Up @@ -167,7 +166,7 @@ def __init__(
**config
)

def element_to_mobject(self, element, **decimal_config) -> VMobject:
def element_to_mobject(self, element, **decimal_config) -> DecimalNumber:
return DecimalNumber(element, **decimal_config)


Expand Down

0 comments on commit 45f8ca7

Please sign in to comment.