Skip to content

Commit

Permalink
Fix missing InitVar in OscApiException
Browse files Browse the repository at this point in the history
  • Loading branch information
aubustou authored and jerome-jutteau committed Nov 8, 2021
1 parent ec3a610 commit 727c980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions osc_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import logging
import re
import urllib.parse
from dataclasses import dataclass, field
from dataclasses import InitVar, dataclass, field
from pathlib import Path
from typing import Any, Dict, List, Mapping, Optional, Tuple, Union, cast

Expand Down Expand Up @@ -74,7 +74,7 @@ class Tag(TypedDict):

@dataclass
class OscApiException(Exception):
http_response: Response
http_response: InitVar[Response]

status_code: int = field(init=False)
error_code: Optional[str] = field(default=None, init=False)
Expand Down

0 comments on commit 727c980

Please sign in to comment.