generated from tophat/new-project-kit
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: collapse io and serializer into single class (#30)
* refactor: collapse io and serializer into single class * wip: update io
- Loading branch information
Noah
authored
Dec 7, 2019
1 parent
1680d10
commit 40a3001
Showing
11 changed files
with
238 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
from .io import AbstractImageSnapshotIO | ||
from .serializer import ImageSnapshotSerializer | ||
from .serializer import AbstractImageSnapshotSerializer | ||
|
||
|
||
class PNGImageSnapshotIO(AbstractImageSnapshotIO): | ||
class PNGImageSnapshotSerializer(AbstractImageSnapshotSerializer): | ||
@property | ||
def extension(self) -> str: | ||
return "png" | ||
|
||
|
||
class SVGImageSnapshotIO(AbstractImageSnapshotIO): | ||
class SVGImageSnapshotSerializer(AbstractImageSnapshotSerializer): | ||
@property | ||
def extension(self) -> str: | ||
return "svg" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.