From 6523e0aaf87a30199b81b863def0a54e9e5479c3 Mon Sep 17 00:00:00 2001 From: ATATC Date: Tue, 23 Apr 2024 09:54:16 -0400 Subject: [PATCH] Replaced `copy.copy()` with `list.copy()`. (#114) --- leads/data_persistence.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/leads/data_persistence.py b/leads/data_persistence.py index 580660b1..0d9c3e57 100644 --- a/leads/data_persistence.py +++ b/leads/data_persistence.py @@ -1,4 +1,3 @@ -from copy import copy as _copy from operator import add as _add, sub as _sub, mul as _mul, truediv as _truediv, floordiv as _floordiv, lt as _lt, \ le as _le, gt as _gt, ge as _ge from typing import TextIO as _TextIO, TypeVar as _TypeVar, Generic as _Generic, Sequence as _Sequence, \ @@ -62,7 +61,7 @@ def __str__(self) -> str: return str(self._data) def to_list(self) -> list[T]: - return _copy(self._data) + return self._data.copy() def _push_to_data(self, element: T) -> None: self._data.append(element)