Skip to content

Commit e5dceda

Browse files
chore(internal): codegen related update (#41)
1 parent c16c250 commit e5dceda

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Diff for: src/gitpod/_exceptions.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import TYPE_CHECKING, Any, Optional, cast
5+
from typing import Any, Optional, cast
66
from typing_extensions import Literal
77

88
import httpx
@@ -53,11 +53,6 @@ class APIError(GitpodError):
5353
Contains an arbitrary serialized message along with a @type that describes the
5454
type of the serialized message.
5555
"""
56-
if TYPE_CHECKING:
57-
# Stub to indicate that arbitrary properties are accepted.
58-
# To access properties that are not valid identifiers you can use `getattr`, e.g.
59-
# `getattr(obj, '$type')`
60-
def __getattr__(self, attr: str) -> object: ...
6156

6257
def __init__(self, message: str, request: httpx.Request, *, body: object | None) -> None:
6358
super().__init__(message)

0 commit comments

Comments
 (0)