26 lines
707 B
Diff
26 lines
707 B
Diff
|
|
From 093f12f4414f3f2f98154f9e024ffb8e5cf9b21a Mon Sep 17 00:00:00 2001
|
||
|
|
From: starlet-dx <15929766099@163.com>
|
||
|
|
Date: Fri, 4 Aug 2023 10:47:30 +0800
|
||
|
|
Subject: [PATCH 1/1] Fix build failure
|
||
|
|
|
||
|
|
---
|
||
|
|
dataclasses.py | 2 +-
|
||
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
|
||
|
|
diff --git a/dataclasses.py b/dataclasses.py
|
||
|
|
index ddd59c6..c8150ae 100644
|
||
|
|
--- a/dataclasses.py
|
||
|
|
+++ b/dataclasses.py
|
||
|
|
@@ -547,7 +547,7 @@ def _hash_fn(fields):
|
||
|
|
def _is_classvar(a_type, typing):
|
||
|
|
# This test uses a typing internal class, but it's the best way to
|
||
|
|
# test if this is a ClassVar.
|
||
|
|
- return type(a_type) is typing._ClassVar
|
||
|
|
+ return type(a_type) is typing.ClassVar
|
||
|
|
|
||
|
|
|
||
|
|
def _is_initvar(a_type, dataclasses):
|
||
|
|
--
|
||
|
|
2.30.0
|
||
|
|
|