Skip to content

Commit

Permalink
feat(stubs): add method for resolving absolute stub package name from…
Browse files Browse the repository at this point in the history
… manifest.
  • Loading branch information
BradenM committed Dec 11, 2022
1 parent 1350263 commit ad55507
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions micropy/stubs/manifest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ def __init_subclass__(cls, **kwargs):
@abc.abstractmethod
def resolve_package_url(self, package: StubPackage) -> str:
"""Resolve package to a stub source."""

def resolve_package_absolute_name(self, package: StubPackage) -> str:
"""Resolve package absolute name."""
return "/".join([self.repository.name, package.name])

0 comments on commit ad55507

Please sign in to comment.