Skip to content

Commit

Permalink
Testing
Browse files Browse the repository at this point in the history
  • Loading branch information
dalthviz committed Jun 16, 2023
1 parent eb487cd commit 8c69032
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/npe2/manifest/_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def from_file(cls, path: Union[Path, str]):
try:
import tomllib
except ImportError:
import tomli as tomllib # type: ignore [no-redef]
import tomli as tomllib

loader = tomllib.load
elif path.suffix.lower() in (".yaml", ".yml"):
Expand Down
4 changes: 3 additions & 1 deletion src/npe2/manifest/contributions/_themes.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
from typing import Literal, Optional, Union

from pydantic import BaseModel, color
Expand Down Expand Up @@ -65,5 +66,6 @@ class ThemeContribution(BaseModel):
' - HSL strings: "`hsl(270, 60%, 70%)"`, `"hsl(270, 60%, 70%, .5)`"\n'
)
font_size: str = Field(
description="Font size (in points, pt) used in the application."
default="12pt" if sys.platform == "darwin" else "9pt",
description="Font size (in points, pt) used in the application.",
)

0 comments on commit 8c69032

Please sign in to comment.