Skip to content
This repository was archived by the owner on Apr 25, 2024. It is now read-only.

Commit 9d780f1

Browse files
Remove unnecessary list creation in KSequence.__init__ (#636)
Co-authored-by: devops <[email protected]>
1 parent a18d76d commit 9d780f1

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

package/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.431
1+
0.1.432

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[tool.poetry]
66
name = "pyk"
7-
version = "0.1.431"
7+
version = "0.1.432"
88
description = ""
99
authors = [
1010
"Runtime Verification, Inc. <[email protected]>",

src/pyk/kast/inner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,10 +577,10 @@ def __init__(self, *args: Any, **kwargs: Any):
577577
else:
578578
items = args
579579

580-
_items = []
580+
_items: list[KInner] = []
581581
for i in items:
582582
if type(i) is KSequence:
583-
_items.extend(list(i.items))
583+
_items.extend(i.items)
584584
else:
585585
_items.append(i)
586586
items = tuple(_items)

0 commit comments

Comments
 (0)