Skip to content

Commit

Permalink
Any struct
Browse files Browse the repository at this point in the history
  • Loading branch information
babenek committed Oct 26, 2022
1 parent 1e2c317 commit 7c68080
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions credsweeper/file_handler/struct_content_provider.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from typing import List, Optional, Union
from typing import List, Optional, Union, Any

from credsweeper.file_handler.analysis_target import AnalysisTarget
from credsweeper.file_handler.content_provider import ContentProvider
Expand All @@ -18,20 +18,20 @@ class StructContentProvider(ContentProvider):

def __init__(
self, #
struct: Union[dict, list], #
struct: Any, #
file_path: Optional[str] = None, #
file_type: Optional[str] = None, #
info: Optional[str] = None) -> None:
super().__init__(file_path=file_path, file_type=file_type, info=info)
self.struct = struct

@property
def struct(self) -> dict:
def struct(self) -> Any:
"""obj getter"""
return self.__struct

@struct.setter
def struct(self, struct: dict) -> None:
def struct(self, struct: Any) -> None:
"""obj setter"""
self.__struct = struct

Expand Down

0 comments on commit 7c68080

Please sign in to comment.