Skip to content

fix: the replicate will fail if the atom types of system is not sorted #67

fix: the replicate will fail if the atom types of system is not sorted

fix: the replicate will fail if the atom types of system is not sorted #67

Triggered via pull request June 5, 2024 14:56
Status Failure
Total duration 34s
Artifacts

pyright.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
pyright: dpdata/system.py#L779
No overloads for "tile" match the provided arguments (reportCallIssue)
pyright: dpdata/system.py#L779
Argument of type "tuple[int64, Literal[1]]" cannot be assigned to parameter "reps" of type "int | Sequence[int]" in function "tile"   Type "tuple[int64, Literal[1]]" is incompatible with type "int | Sequence[int]"     "tuple[int64, Literal[1]]" is incompatible with "int"     "tuple[int64, Literal[1]]" is incompatible with "Sequence[int]"       Type parameter "_T_co@Sequence" is covariant, but "int64 | Literal[1]" is not a subtype of "int"         Type "int64 | Literal[1]" is incompatible with type "int"           "signedinteger[_64Bit]" is incompatible with "int" (reportArgumentType)
pyright
2 errors