Skip to content

Commit

Permalink
black on sympy-stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
debonte committed May 2, 2024
1 parent a716416 commit 4c1c96d
Show file tree
Hide file tree
Showing 525 changed files with 15,579 additions and 32,599 deletions.
903 changes: 898 additions & 5 deletions stubs/sympy-stubs/__init__.pyi

Large diffs are not rendered by default.

198 changes: 49 additions & 149 deletions stubs/sympy-stubs/algebras/quaternion.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -10,165 +10,65 @@ from sympy.matrices.dense import MutableDenseMatrix
class Quaternion(Expr):
_op_priority = ...
is_commutative = ...
def __new__(cls, a=..., b=..., c=..., d=..., real_field=..., norm=...) -> Self:
...

def set_norm(self, norm) -> None:
...

def __new__(cls, a=..., b=..., c=..., d=..., real_field=..., norm=...) -> Self: ...
def set_norm(self, norm) -> None: ...
@property
def a(self):
...

def a(self): ...
@property
def b(self):
...

def b(self): ...
@property
def c(self):
...

def c(self): ...
@property
def d(self):
...

def d(self): ...
@property
def real_field(self):
...

def real_field(self): ...
@property
def product_matrix_left(self) -> MutableDenseMatrix:
...

def product_matrix_left(self) -> MutableDenseMatrix: ...
@property
def product_matrix_right(self) -> MutableDenseMatrix:
...

def to_Matrix(self, vector_only=...) -> MutableDenseMatrix:
...

def product_matrix_right(self) -> MutableDenseMatrix: ...
def to_Matrix(self, vector_only=...) -> MutableDenseMatrix: ...
@classmethod
def from_Matrix(cls, elements) -> Quaternion:
...

def from_Matrix(cls, elements) -> Quaternion: ...
@classmethod
def from_euler(cls, angles, seq) -> Any:
...

def to_euler(self, seq, angle_addition=..., avoid_square_root=...) -> tuple[int, ...]:
...

def from_euler(cls, angles, seq) -> Any: ...
def to_euler(self, seq, angle_addition=..., avoid_square_root=...) -> tuple[int, ...]: ...
@classmethod
def from_axis_angle(cls, vector, angle) -> Self:
...

def from_axis_angle(cls, vector, angle) -> Self: ...
@classmethod
def from_rotation_matrix(cls, M) -> Quaternion:
...

def __add__(self, other) -> Quaternion:
...

def __radd__(self, other) -> Quaternion:
...

def __sub__(self, other) -> Quaternion:
...

def __mul__(self, other) -> Quaternion:
...

def __rmul__(self, other) -> Quaternion:
...

def __pow__(self, p) -> NotImplementedType | Quaternion | Literal[1]:
...

def __neg__(self) -> Quaternion:
...

def __truediv__(self, other):
...

def __rtruediv__(self, other):
...

def diff(self, *symbols, **kwargs) -> Self:
...

def add(self, other) -> Quaternion:
...

def mul(self, other) -> Quaternion:
...

def norm(self) -> Pow:
...

def normalize(self):
...

def inverse(self):
...

def pow(self, p) -> NotImplementedType | Quaternion | Literal[1]:
...

def exp(self) -> Quaternion:
...

def pow_cos_sin(self, p):
...

def integrate(self, *args) -> Quaternion:
...

def from_rotation_matrix(cls, M) -> Quaternion: ...
def __add__(self, other) -> Quaternion: ...
def __radd__(self, other) -> Quaternion: ...
def __sub__(self, other) -> Quaternion: ...
def __mul__(self, other) -> Quaternion: ...
def __rmul__(self, other) -> Quaternion: ...
def __pow__(self, p) -> NotImplementedType | Quaternion | Literal[1]: ...
def __neg__(self) -> Quaternion: ...
def __truediv__(self, other): ...
def __rtruediv__(self, other): ...
def diff(self, *symbols, **kwargs) -> Self: ...
def add(self, other) -> Quaternion: ...
def mul(self, other) -> Quaternion: ...
def norm(self) -> Pow: ...
def normalize(self): ...
def inverse(self): ...
def pow(self, p) -> NotImplementedType | Quaternion | Literal[1]: ...
def exp(self) -> Quaternion: ...
def pow_cos_sin(self, p): ...
def integrate(self, *args) -> Quaternion: ...
@staticmethod
def rotate_point(pin, r) -> tuple[Any, Any, Any]:
...

def to_axis_angle(self) -> tuple[tuple[Any, Any, Any], Any]:
...

def to_rotation_matrix(self, v=..., homogeneous=...) -> MutableDenseMatrix:
...

def scalar_part(self):
...

def vector_part(self) -> Quaternion:
...

def axis(self) -> Quaternion:
...

def is_pure(self):
...

def is_zero_quaternion(self) -> bool | None:
...

def angle(self) -> type[UndefinedFunction]:
...

def arc_coplanar(self, other) -> bool | None:
...

def rotate_point(pin, r) -> tuple[Any, Any, Any]: ...
def to_axis_angle(self) -> tuple[tuple[Any, Any, Any], Any]: ...
def to_rotation_matrix(self, v=..., homogeneous=...) -> MutableDenseMatrix: ...
def scalar_part(self): ...
def vector_part(self) -> Quaternion: ...
def axis(self) -> Quaternion: ...
def is_pure(self): ...
def is_zero_quaternion(self) -> bool | None: ...
def angle(self) -> type[UndefinedFunction]: ...
def arc_coplanar(self, other) -> bool | None: ...
@classmethod
def vector_coplanar(cls, q1, q2, q3) -> Any | bool | None:
...

def parallel(self, other):
...

def orthogonal(self, other):
...

def index_vector(self) -> Quaternion:
...

def mensor(self) -> type[UndefinedFunction]:
...



def vector_coplanar(cls, q1, q2, q3) -> Any | bool | None: ...
def parallel(self, other): ...
def orthogonal(self, other): ...
def index_vector(self) -> Quaternion: ...
def mensor(self) -> type[UndefinedFunction]: ...
15 changes: 14 additions & 1 deletion stubs/sympy-stubs/assumptions/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,17 @@ from sympy.assumptions.assume import AppliedPredicate, AssumptionsContext, Predi
from sympy.assumptions.refine import refine
from sympy.assumptions.relation import AppliedBinaryRelation, BinaryRelation

__all__ = ['AppliedPredicate', 'Predicate', 'AssumptionsContext', 'assuming', 'global_assumptions', 'Q', 'ask', 'register_handler', 'remove_handler', 'refine', 'BinaryRelation', 'AppliedBinaryRelation']
__all__ = [
"AppliedPredicate",
"Predicate",
"AssumptionsContext",
"assuming",
"global_assumptions",
"Q",
"ask",
"register_handler",
"remove_handler",
"refine",
"BinaryRelation",
"AppliedBinaryRelation",
]
Loading

0 comments on commit 4c1c96d

Please sign in to comment.