Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9285835a
Commit
9285835a
authored
May 16, 2018
by
Eric V. Smith
Committed by
GitHub
May 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-33534: Remove unneeded test. (GH-6897)
This condition as already tested before this code is called.
parent
f8e75494
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
Lib/dataclasses.py
Lib/dataclasses.py
+5
-6
No files found.
Lib/dataclasses.py
View file @
9285835a
...
...
@@ -544,12 +544,11 @@ def _hash_fn(fields):
def
_is_classvar
(
a_type
,
typing
):
if
typing
:
# This test uses a typing internal class, but it's the best
# way to test if this is a ClassVar.
return
(
a_type
is
typing
.
ClassVar
or
(
type
(
a_type
)
is
typing
.
_GenericAlias
and
a_type
.
__origin__
is
typing
.
ClassVar
))
# This test uses a typing internal class, but it's the best way to
# test if this is a ClassVar.
return
(
a_type
is
typing
.
ClassVar
or
(
type
(
a_type
)
is
typing
.
_GenericAlias
and
a_type
.
__origin__
is
typing
.
ClassVar
))
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