-
Notifications
You must be signed in to change notification settings - Fork 876
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
Self
type in Method Signatures (#3705)
* add some Self type annotations * add more Self and type annotations * add more Self and type annotations * pre-commit auto-fixes * add more Self and type annotations * format docstring to google style * add more Self types * TEMP FIX for normalized repr * add more Self types * remove encoding for binary * use `Attributes` over `Parameters` * add Self return type to __new__ and __enter__ methods * use `Self` for multi-line def * `mypy` fixes in core * `mypy` fixes in core * move `mypy` fixes * add Note tag * remove unused arg properties from core.ion * fix mypy error * fix unit test for reaction energy calc * fix unit test for core.units * remove ERROR = UnitError * google-style doc string return type format * replace deprecated utcnow * fix missing datetime import * replace `app = lines.append` * slab type hints * relocate Slab import * fix vector in adsorption * use time for time count * revert datetime utc * switch to `time` * switch to `datetime` for utc time for now * take some coderabbitai suggestions * ignore some mypy override errors * fix type ufloat * fix BaseLammpsGenerator missing fields inputfile and data (did this actually work before) plus fix mypy errors * `mypy` fixes * `mypy` fixes * more `mypy` fixes * mypy fixes down to 69 errors * fix unit test * reapply fix for voronoi * fix mypy and voronoi unit test * fix unit test for voronoi * more `mypy` fixes * one more `mypy` fix * pre-commit auto-fixes * fix number import name * fix lammps generator * avoid self type hard-coding * mypy fix * `sourcery` fix * `sourcery` fix * `sourcery` fix * `mypy` fix * suppress `mypy` error * `mypy` and `sourcery` fix * `mypy` fixes * fix unit tests * `mypy` fixes * `mypy` fixes * suppress `mypy` error in xcfunc * fix `mypy` error * fix `mypy` error * refactor date parsing in AirssProvider to use std lib datetime instead of pypi pkg dateutil * fix TestKpoints check kpts_shift * fix mypy error in sets.py: cast(Sequence[Sequence[float]], kpoints) * refactor * fix mypy confusing keyword and positional args in Lattice.from_parameters * remove now unused mypy ignore in Cssr.from_str * fix bad refactor in 8bdb484 --------- Co-authored-by: Janosh Riebesell <[email protected]>
- Loading branch information
1 parent
2500664
commit 6a06f3c
Showing
128 changed files
with
1,324 additions
and
1,202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.