Skip to content

Commit

Permalink
add type to standard_nv_pairs in Subject
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-el committed Aug 21, 2024
1 parent bdc4007 commit 0b92468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snowplow_tracker/subject.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# language governing permissions and limitations there under.
# """

from typing import Optional
from typing import Dict, Optional, Union
from snowplow_tracker.contracts import one_of, greater_than
from snowplow_tracker.typing import SupportedPlatform, SUPPORTED_PLATFORMS, PayloadDict

Expand All @@ -30,7 +30,7 @@ class Subject(object):
"""

def __init__(self) -> None:
self.standard_nv_pairs = {"p": DEFAULT_PLATFORM}
self.standard_nv_pairs: Dict[str, Union[str, int]] = {"p": DEFAULT_PLATFORM}

def set_platform(self, value: SupportedPlatform) -> "Subject":
"""
Expand Down

0 comments on commit 0b92468

Please sign in to comment.