Skip to content

Unit tests

Unit tests #4

Triggered via pull request October 31, 2024 00:27
@dylanbmorgandylanbmorgan
synchronize #12
test
Status Failure
Total duration 44s
Billable time 1m
Artifacts

pyright.yaml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
check: dfttools/custom_ase.py#L32
Argument of type "Self@CustomAims" cannot be assigned to parameter "self" of type "FileIOCalculator" in function "write_input"   "CustomAims*" is not assignable to "FileIOCalculator" (reportArgumentType)
check: dfttools/custom_ase.py#L53
Argument of type "bool_ | bool" cannot be assigned to parameter "scaled" of type "bool" in function "write_aims"   Type "bool_ | bool" is not assignable to type "bool"     "bool_" is not assignable to "bool" (reportArgumentType)
check: dfttools/custom_ase.py#L54
Argument of type "bool_ | bool | Unknown" cannot be assigned to parameter "geo_constrain" of type "bool" in function "write_aims"   Type "bool_ | bool | Unknown" is not assignable to type "bool"     "bool_" is not assignable to "bool" (reportArgumentType)
check: dfttools/custom_ase.py#L59
Cannot access attribute "write_control" for class "CustomAims*"   Attribute "write_control" is unknown (reportAttributeAccessIssue)
check: dfttools/custom_ase.py#L60
Cannot access attribute "write_species" for class "CustomAims*"   Attribute "write_species" is unknown (reportAttributeAccessIssue)
check: dfttools/custom_ase.py#L61
Cannot access attribute "write" for class "dict[Unknown, Unknown]"   Attribute "write" is unknown (reportAttributeAccessIssue)
check: dfttools/geometry.py#L279
Type "Atoms" is not assignable to return type "None"   "Atoms" is not assignable to "None" (reportReturnType)
check: dfttools/geometry.py#L1304
Argument of type "tuple[NDArray[signedinteger[_64Bit]], NDArray[float64]] | NDArray[signedinteger[_64Bit]]" cannot be assigned to parameter "inds" of type "NDArray[int64]" in function "reorder_atoms"   Type "tuple[NDArray[signedinteger[_64Bit]], NDArray[float64]] | NDArray[signedinteger[_64Bit]]" is not assignable to type "NDArray[int64]"     "tuple[NDArray[signedinteger[_64Bit]], NDArray[float64]]" is not assignable to "ndarray[Any, dtype[int64]]" (reportArgumentType)
check: dfttools/geometry.py#L1707
Argument of type "NDArray[signedinteger[_32Bit]]" cannot be assigned to parameter "atom_indices" of type "NDArray[int64]" in function "get_atoms_by_indices"   "ndarray[Any, dtype[signedinteger[_32Bit]]]" is not assignable to "ndarray[Any, dtype[int64]]"     Type parameter "_DType_co@ndarray" is covariant, but "dtype[signedinteger[_32Bit]]" is not a subtype of "dtype[int64]"       "dtype[signedinteger[_32Bit]]" is not assignable to "dtype[int64]"         Type parameter "_DTypeScalar_co@dtype" is covariant, but "signedinteger[_32Bit]" is not a subtype of "int64"           "signedinteger[_32Bit]" is not assignable to "signedinteger[_64Bit]" (reportArgumentType)
check: dfttools/geometry.py#L1804
"T" is not a known attribute of "None" (reportOptionalMemberAccess)