Skip to content

Commit

Permalink
Merge pull request #3 from willyw0nka/fix-layer-id
Browse files Browse the repository at this point in the history
fix: Modify dataclass types to allow dir scans
  • Loading branch information
willyw0nka authored Apr 10, 2024
2 parents 2ae13c6 + 77a1b29 commit 683f68f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pygrype/core/scan/distro.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from dataclasses import dataclass
from typing import List
from typing import List, Optional


@dataclass
class Distro:
name: str
version: str
idLike: List
idLike: Optional[List]
4 changes: 2 additions & 2 deletions pygrype/core/scan/location.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from dataclasses import dataclass

from typing import Optional

@dataclass
class Location:
path: str
layerID: str
layerID: Optional[str] = None
3 changes: 2 additions & 1 deletion pygrype/core/scan/scan_source.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from dataclasses import dataclass
from typing import Union

from pygrype.core.scan.target import Target


@dataclass
class ScanSource:
type: str
target: Target
target: Union[Target, str]

0 comments on commit 683f68f

Please sign in to comment.