Skip to content

Commit c6c6cc5

Browse files
update requires decorator version for find_by method in associations and integrations
1 parent 7330ff8 commit c6c6cc5

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/posit/connect/oauth/associations.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
from typing_extensions import TYPE_CHECKING, List, Optional
88

9-
# from ..context import requires
9+
from ..context import requires
1010
from ..resources import BaseResource, Resources, _matches_exact, _matches_pattern
1111

1212
if TYPE_CHECKING:
@@ -67,8 +67,7 @@ def find(self) -> List[Association]:
6767
for result in response.json()
6868
]
6969

70-
# TODO turn this on before merging
71-
# @requires("2025.07.0")
70+
@requires("2025.06.0-dev")
7271
def find_by(
7372
self,
7473
integration_type: Optional[types.OAuthIntegrationType | str] = None,

src/posit/connect/oauth/integrations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from typing_extensions import TYPE_CHECKING, List, Optional, overload
88

9+
from ..context import requires
910
from ..resources import (
1011
BaseResource,
1112
Resources,
@@ -131,8 +132,7 @@ def find(self) -> List[Integration]:
131132
for result in response.json()
132133
]
133134

134-
# TODO turn this on before merging
135-
# @requires("2025.07.0")
135+
@requires("2025.06.0-dev")
136136
def find_by(
137137
self,
138138
integration_type: Optional[types.OAuthIntegrationType | str] = None,

0 commit comments

Comments
 (0)