-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue where event enums were not working as expected
- Loading branch information
1 parent
eb9b587
commit efc0bc6
Showing
2 changed files
with
10 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
class Event: | ||
from enum import Enum | ||
from typing import Union | ||
|
||
|
||
class BuildEvent(Enum): | ||
PRE = 0 | ||
POST = 1 | ||
|
||
|
||
class BuildEvent(Event): | ||
pass | ||
class ImportEvent(Enum): | ||
PRE = 0 | ||
POST = 1 | ||
|
||
|
||
class ImportEvent(Event): | ||
pass | ||
Event = Union[BuildEvent, ImportEvent] |
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