use cast() to clarify some type checker complaints
This commit is contained in:
parent
93471a221c
commit
fcb470a02c
2 changed files with 2 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue