Skip to content

Commit

Permalink
add typing for common param values
Browse files Browse the repository at this point in the history
  • Loading branch information
snoyer committed Jan 14, 2025
1 parent 0993361 commit 393d64e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build123d/importers.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import unicodedata
from math import degrees
from pathlib import Path
from typing import Optional, TextIO, Union
from typing import Literal, Optional, TextIO, Union
import warnings

from OCP.BRep import BRep_Builder
Expand Down Expand Up @@ -338,7 +338,7 @@ def import_svg(
*,
flip_y: bool = True,
ignore_visibility: bool = False,
label_by: str = "id",
label_by: Literal["id", "class", "inkscape:label"] | str = "id",
is_inkscape_label: bool | None = None, # TODO remove for `1.0` release
) -> ShapeList[Wire | Face]:
"""import_svg
Expand Down

0 comments on commit 393d64e

Please sign in to comment.