Skip to content

Commit

Permalink
Correct object type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaferrera committed Jul 24, 2019
1 parent 6937cfe commit 6c0afae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stoq/data_classes.py
Expand Up @@ -17,7 +17,7 @@
import uuid
from copy import deepcopy
from datetime import datetime
from typing import Dict, List, Optional, DefaultDict
from typing import Dict, List, Optional, DefaultDict, Union

import stoq.helpers as helpers

Expand Down Expand Up @@ -57,7 +57,7 @@ def __repr__(self):
class Payload:
def __init__(
self,
content: bytes,
content: Union[bytes, str],
payload_meta: Optional[PayloadMeta] = None,
extracted_by: Optional[str] = None,
extracted_from: Optional[str] = None,
Expand Down Expand Up @@ -129,7 +129,7 @@ def __init__(
size: int,
payload_meta: PayloadMeta,
workers: Dict[str, Dict],
plugins_run: Dict[str, List[List]],
plugins_run: Dict[str, List[str]],
extracted_from: Optional[str] = None,
extracted_by: Optional[str] = None,
) -> None:
Expand Down

0 comments on commit 6c0afae

Please sign in to comment.