Skip to content

Commit 7aaeaef

Browse files
committed
Fix TypeError due to IntEnum
1 parent 10a6582 commit 7aaeaef

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

httpcore/_async/http2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def has_body_headers(request: Request) -> bool:
3333
)
3434

3535

36-
class HTTPConnectionState(enum.IntEnum):
36+
class HTTPConnectionState(enum.Enum):
3737
ACTIVE = 1
3838
IDLE = 2
3939
CLOSED = 3

httpcore/_sync/http2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def has_body_headers(request: Request) -> bool:
3333
)
3434

3535

36-
class HTTPConnectionState(enum.IntEnum):
36+
class HTTPConnectionState(enum.Enum):
3737
ACTIVE = 1
3838
IDLE = 2
3939
CLOSED = 3

0 commit comments

Comments
 (0)