Skip to content

Commit

Permalink
lint: py39 can't use | in isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
CompRhys committed Jul 16, 2024
1 parent ba292c6 commit b7262b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyxtal/crystal.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def set_sites(self, sites):
# keep the record of wp index
id = self.group.get_index_by_letter(item[0])
self.sites[specie].append((id, item[1]))
elif isinstance(sites[i], list | tuple):
elif isinstance(sites[i], (list, tuple)):
for site in sites[i]:
if type(site) is tuple:
(letter, x, y, z) = site
Expand Down

0 comments on commit b7262b3

Please sign in to comment.