Skip to content

Commit ae5b4bd

Browse files
committed
refactor(import[options]) Use simple assignment on non-frozen dataclass
why: ImportOptions is not frozen, so object.__setattr__ is unnecessary. what: - Replace object.__setattr__(self, "limit", sys.maxsize) with self.limit = sys.maxsize
1 parent d610f62 commit ae5b4bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/vcspull/_internal/remotes

src/vcspull/_internal/remotes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def __post_init__(self) -> None:
268268
msg = f"limit must be >= 0, got {self.limit}"
269269
raise ValueError(msg)
270270
if self.limit == 0:
271-
object.__setattr__(self, "limit", sys.maxsize)
271+
self.limit = sys.maxsize
272272

273273

274274
class HTTPClient:

0 commit comments

Comments
 (0)