mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-30 11:54:34 +03:00
pySim.esim.saip.ProfileElementSequence: Update type annotations
The type annotations didn't reflect reality in two cases. Change-Id: Ib99c00a38bf009c63180b4a593d6cc796ff282d3
This commit is contained in:
@@ -1789,7 +1789,7 @@ class ProfileElementSequence:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def peclass_for_path(path: Path) -> Optional[ProfileElement]:
|
def peclass_for_path(path: Path) -> Tuple[Optional[ProfileElement], Optional[templates.FileTemplate]]:
|
||||||
"""Return the ProfileElement class that can contain a file with given path."""
|
"""Return the ProfileElement class that can contain a file with given path."""
|
||||||
naa = ProfileElementSequence.naa_for_path(path)
|
naa = ProfileElementSequence.naa_for_path(path)
|
||||||
if naa:
|
if naa:
|
||||||
@@ -1822,7 +1822,7 @@ class ProfileElementSequence:
|
|||||||
return ProfileElementTelecom, ft
|
return ProfileElementTelecom, ft
|
||||||
return ProfileElementGFM, None
|
return ProfileElementGFM, None
|
||||||
|
|
||||||
def pe_for_path(self, path: Path) -> Optional[ProfileElement]:
|
def pe_for_path(self, path: Path) -> Tuple[Optional[ProfileElement], Optional[templates.FileTemplate]]:
|
||||||
"""Return the ProfileElement instance that can contain a file with matching path. This will
|
"""Return the ProfileElement instance that can contain a file with matching path. This will
|
||||||
either be an existing PE within the sequence, or it will be a newly-allocated PE that is
|
either be an existing PE within the sequence, or it will be a newly-allocated PE that is
|
||||||
inserted into the sequence."""
|
inserted into the sequence."""
|
||||||
|
|||||||
Reference in New Issue
Block a user