diff options
Diffstat (limited to 'requests_cache/serializers/pipeline.py')
-rw-r--r-- | requests_cache/serializers/pipeline.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/requests_cache/serializers/pipeline.py b/requests_cache/serializers/pipeline.py index 652c8f5..320e498 100644 --- a/requests_cache/serializers/pipeline.py +++ b/requests_cache/serializers/pipeline.py @@ -4,7 +4,7 @@ :classes-only: :nosignatures: """ -from typing import Any, Callable, Sequence, Union +from typing import Any, Callable, Optional, Sequence, Union from ..models import CachedResponse @@ -43,7 +43,7 @@ class SerializerPipeline: is_binary: Indicates whether the serialized content is binary """ - def __init__(self, stages: Sequence, name: str = None, is_binary: bool = False): + def __init__(self, stages: Sequence, name: Optional[str] = None, is_binary: bool = False): self.is_binary = is_binary self.stages = stages self.dump_stages = [stage.dumps for stage in stages] |