mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #22823: Use set literals instead of creating a set from a list
This commit is contained in:
parent
bf764a1912
commit
df1b699447
10 changed files with 19 additions and 20 deletions
|
@ -33,8 +33,7 @@ __all__ = [
|
|||
# See the EBNF at the top of the file to understand the logical connection
|
||||
# between the various node types.
|
||||
|
||||
builtin_types = set(
|
||||
['identifier', 'string', 'bytes', 'int', 'object', 'singleton'])
|
||||
builtin_types = {'identifier', 'string', 'bytes', 'int', 'object', 'singleton'}
|
||||
|
||||
class AST:
|
||||
def __repr__(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue