Skip to content

Commit

Permalink
Merge pull request #55 from zardini123/version_number
Browse files Browse the repository at this point in the history
Added default version number to SymbolLib
  • Loading branch information
mvnmgrx authored Feb 20, 2023
2 parents b311b2a + f20ff9e commit c97aa9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/kiutils/symbol.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from kiutils.items.syitems import *
from kiutils.utils import sexpr
from kiutils.utils.strings import dequote
from kiutils.misc.config import KIUTILS_CREATE_NEW_VERSION_STR

@dataclass
class SymbolAlternativePin():
Expand Down Expand Up @@ -466,7 +467,7 @@ class SymbolLib():
Documentation:
https://dev-docs.kicad.org/en/file-formats/sexpr-symbol-lib/
"""
version: Optional[str] = None
version: str = KIUTILS_CREATE_NEW_VERSION_STR
"""The ``version`` token attribute defines the symbol library version using the YYYYMMDD date format"""

generator: Optional[str] = None
Expand Down

0 comments on commit c97aa9f

Please # to comment.