Skip to content

Commit

Permalink
add more docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
joamatab committed Jul 28, 2024
1 parent 7d9751c commit 6f64234
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 3 additions & 1 deletion cspdk/si220/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

@lru_cache
def get_pdk() -> Pdk:
"""Return Cornerstone PDK."""
return Pdk(
name="cornerstone_si220",
cells=_cells,
Expand All @@ -33,7 +34,8 @@ def get_pdk() -> Pdk:
)


def activate_pdk():
def activate_pdk() -> None:
"""Activate Cornerstone Si220 PDK."""
pdk = get_pdk()
pdk.activate()

Expand Down
6 changes: 4 additions & 2 deletions cspdk/si500/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@


@lru_cache
def get_pdk():
def get_pdk() -> Pdk:
"""Return Cornerstone Si500 PDK."""
return Pdk(
name="cornerstone_si500",
cells=_cells,
Expand All @@ -33,7 +34,8 @@ def get_pdk():
)


def activate_pdk():
def activate_pdk() -> None:
"""Activate Cornerstone Si500 PDK."""
pdk = get_pdk()
pdk.activate()

Expand Down
6 changes: 4 additions & 2 deletions cspdk/sin300/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@


@lru_cache
def get_pdk():
def get_pdk() -> Pdk:
"""Return Cornerstone SiN300 PDK."""
return Pdk(
name="cornerstone_sin300",
cells=_cells,
Expand All @@ -33,7 +34,8 @@ def get_pdk():
)


def activate_pdk():
def activate_pdk() -> None:
"""Activate Cornerstone SiN300 PDK."""
pdk = get_pdk()
pdk.activate()

Expand Down

0 comments on commit 6f64234

Please sign in to comment.