Skip to content

Commit

Permalink
Merge pull request #71 from barseghyanartur/dev
Browse files Browse the repository at this point in the history
Fix/fixes (#70)
  • Loading branch information
barseghyanartur authored Dec 21, 2023
2 parents 1e4bef9 + 4e04404 commit 750a06a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/faker_file/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,23 @@


class StringValue(str):
data: Dict[str, Any] = {}
__slots__ = ("data",)

data: Dict[str, Any]

def __new__(cls, value, *args, **kwargs):
obj = str.__new__(cls, value)
obj.data = {}
return obj


class BytesValue(bytes):
data: Dict[str, Any] = {}
data: Dict[str, Any]

def __new__(cls, value, *args, **kwargs):
obj = bytes.__new__(cls, value)
obj.data = {}
return obj


def parse_format_func(
Expand Down

0 comments on commit 750a06a

Please sign in to comment.