use cast() to clarify some type checker complaints

This commit is contained in:
Jan Petykiewicz 2024-10-05 15:51:09 -07:00
commit fcb470a02c
2 changed files with 2 additions and 2 deletions

View file

@ -542,7 +542,7 @@ class ILibraryView(Mapping[str, 'Pattern'], metaclass=ABCMeta):
Return:
Topologically sorted list of pattern names.
"""
return list(TopologicalSorter(self.child_graph()).static_order())
return cast(list[str], list(TopologicalSorter(self.child_graph()).static_order()))
def find_refs_local(
self,