Skip to content

Commit

Permalink
feat(stubs): add StubPackage model.
Browse files Browse the repository at this point in the history
  • Loading branch information
BradenM committed Dec 11, 2022
1 parent e0dda9f commit 9664111
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions micropy/stubs/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from __future__ import annotations

from pydantic import BaseModel


class StubPackage(BaseModel):
name: str
version: str

@property
def package_name(self) -> str:
return self.name

0 comments on commit 9664111

Please sign in to comment.