Skip to content

Commit 4b0bed2

Browse files
committed
fix linting errors
1 parent 0941576 commit 4b0bed2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/posit/connect/packages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ContentPackages(ActiveFinderMethods["ContentPackage"], ActiveSequence["Con
3030
def __init__(self, ctx, path):
3131
super().__init__(ctx, path, "name")
3232

33-
def _create_instance(self, path, /, **attributes):
33+
def _create_instance(self, path, /, **attributes): # noqa: ARG002
3434
return ContentPackage(self._ctx, **attributes)
3535

3636
def fetch(self, **conditions):
@@ -139,7 +139,7 @@ class Packages(ActiveFinderMethods["Package"], ActiveSequence["Package"]):
139139
def __init__(self, ctx, path):
140140
super().__init__(ctx, path, "name")
141141

142-
def _create_instance(self, path, /, **attributes):
142+
def _create_instance(self, path, /, **attributes): # noqa: ARG002
143143
return Package(self._ctx, **attributes)
144144

145145
class _Fetch(TypedDict, total=False):

src/posit/connect/resources.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def __len__(self) -> int:
176176
return len(list(self.fetch()))
177177

178178
def __iter__(self):
179-
return iter(self._data)
179+
return iter(self.fetch())
180180

181181
def __str__(self) -> str:
182182
return str(list(self.fetch()))

0 commit comments

Comments
 (0)