Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
9285835a
Unverified
Kaydet (Commit)
9285835a
authored
May 16, 2018
tarafından
Eric V. Smith
Kaydeden (comit)
GitHub
May 16, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-33534: Remove unneeded test. (GH-6897)
This condition as already tested before this code is called.
üst
f8e75494
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
dataclasses.py
Lib/dataclasses.py
+5
-6
No files found.
Lib/dataclasses.py
Dosyayı görüntüle @
9285835a
...
@@ -544,12 +544,11 @@ def _hash_fn(fields):
...
@@ -544,12 +544,11 @@ def _hash_fn(fields):
def
_is_classvar
(
a_type
,
typing
):
def
_is_classvar
(
a_type
,
typing
):
if
typing
:
# This test uses a typing internal class, but it's the best way to
# This test uses a typing internal class, but it's the best
# test if this is a ClassVar.
# way to test if this is a ClassVar.
return
(
a_type
is
typing
.
ClassVar
return
(
a_type
is
typing
.
ClassVar
or
(
type
(
a_type
)
is
typing
.
_GenericAlias
or
(
type
(
a_type
)
is
typing
.
_GenericAlias
and
a_type
.
__origin__
is
typing
.
ClassVar
))
and
a_type
.
__origin__
is
typing
.
ClassVar
))
def
_is_initvar
(
a_type
,
dataclasses
):
def
_is_initvar
(
a_type
,
dataclasses
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment