Skip to content

Commit 923c0e8

Browse files
committed
Make ContentItemRepository inherit from resources Resource
1 parent 2c49eed commit 923c0e8

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

src/posit/connect/repository.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
from __future__ import annotations
44

55
from typing_extensions import (
6-
Any,
7-
Hashable,
86
Optional,
97
Protocol,
108
overload,
@@ -15,11 +13,6 @@
1513
from .resources import Resource, _Resource
1614

1715

18-
# TODO-barret: Replace with Resource class from https://github.com/posit-dev/posit-sdk-py/pull/364/files#diff-94b7dc3c7d7d7c7b1a5f25e06c37df5fc53e1921cb10d41d4f04b18a715fae55R72
19-
class ResourceP(Protocol):
20-
def __getitem__(self, key: Hashable, /) -> Any: ...
21-
22-
2316
# ContentItem Repository uses a PATCH method, not a PUT for updating.
2417
class _ContentItemRepository(_Resource):
2518
def update(self, **attributes):
@@ -32,7 +25,7 @@ def update(self, **attributes):
3225

3326

3427
@runtime_checkable
35-
class ContentItemRepository(ResourceP, Protocol):
28+
class ContentItemRepository(Resource, Protocol):
3629
"""
3730
Content items GitHub repository information.
3831

0 commit comments

Comments
 (0)