Skip to content

Commit

Permalink
Airbyte CDK: fix mypy
Browse files Browse the repository at this point in the history
Signed-off-by: Artem Inzhyyants <[email protected]>
  • Loading branch information
artem1205 committed Nov 13, 2024
1 parent 4bb8f12 commit 4335e11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions airbyte_cdk/sources/declarative/decoders/json_decoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#

import logging
from dataclasses import InitVar, dataclass
from dataclasses import InitVar, dataclass, field
from gzip import decompress
from typing import Any, Generator, Mapping, MutableMapping, List, Optional
from typing import Any, Generator, Mapping, MutableMapping, List

import requests
from airbyte_cdk.sources.declarative.decoders.decoder import Decoder
Expand Down Expand Up @@ -92,7 +92,7 @@ def decode(

@dataclass
class GzipJsonDecoder(JsonDecoder):
encoding: Optional[str] = "utf-8"
encoding: str = field(default="utf-8")

def decode(
self, response: requests.Response
Expand Down

0 comments on commit 4335e11

Please sign in to comment.