Skip to content

Commit

Permalink
MOre mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Shyue Ping Ong committed Dec 14, 2022
1 parent 7b668b7 commit 47d4d34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pymatgen/analysis/diffusion/neb/full_path_mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def add_data_to_similar_edges(
self,
target_label: int | str,
data: dict,
m_hop: MigrationHop = None,
m_hop: MigrationHop | None = None,
):
"""
Insert data to all edges with the same label
Expand Down Expand Up @@ -433,7 +433,7 @@ def get_path(self, max_val=100000, flip_hops=True):
else:
yield u, path_hops

def get_summary_dict(self, added_keys: list[str] = None) -> dict:
def get_summary_dict(self, added_keys: list[str] | None = None) -> dict:
"""
Dictionary format, for saving to database
"""
Expand Down Expand Up @@ -699,7 +699,7 @@ def get_least_chg_path(self):
min_path = path
return min_path

def get_summary_dict(self, add_keys: list[str] = None):
def get_summary_dict(self, add_keys: list[str] | None = None):
"""
Dictionary format, for saving to database
"""
Expand Down

0 comments on commit 47d4d34

Please sign in to comment.