Skip to content

Commit

Permalink
Removed wrong init values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jul 7, 2023
1 parent 338375d commit c6beb29
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pyEDAA/IPXACT/__init__.py
Expand Up @@ -46,11 +46,11 @@
class IpxactSchemaStruct:
"""Schema descriptor made of version, namespace prefix, URI, URL and local path."""

Version : str = None #: Schema version
NamespacePrefix : str = None #: XML namespace prefix
SchemaUri : str = None #: schema URI
SchemaUrl : str = None #: schema URL
LocalPath : Path = None #: local path
Version: str #: Schema version
NamespacePrefix: str #: XML namespace prefix
SchemaUri: str #: Schema URI
SchemaUrl: str #: Schema URL
LocalPath: Path #: Local path

def __init__(self, version : str, namespacePrefix : str, schemaUri : str, schemaUrl : str, localPath : Path):
"""Constructor"""
Expand Down Expand Up @@ -89,10 +89,10 @@ def __init__(self, version : str, namespacePrefix : str, schemaUri : str, schema
class Vlnv:
"""VLNV data structure (Vendor, Library, Name, Version) as a unique identifier in IP-XACT."""

Vendor : str = None #: Vendor name in a VLNV unique identifier
Library : str = None #: Library name in a VLNV unique identifier
Name : str = None #: Component name in a VLNV unique identifier
Version : str = None #: Version in a VLNV unique identifier
Vendor: str #: Vendor name in a VLNV unique identifier
Library: str #: Library name in a VLNV unique identifier
Name: str #: Component name in a VLNV unique identifier
Version: str #: Version in a VLNV unique identifier

def __init__(self, vendor, library, name, version):
"""Constructor"""
Expand Down Expand Up @@ -121,7 +121,7 @@ def ToXml(self, indent=1, isVersionedIdentifier=False):
class RootElement:
"""Base-class for all IP-XACT data classes."""

_vlnv : Vlnv = None #: VLNV unique identifier.
_vlnv: Vlnv #: VLNV unique identifier.

def __init__(self, vlnv):
"""Base-constructor to set a VLNV field for all derives classes."""
Expand Down

0 comments on commit c6beb29

Please sign in to comment.