Skip to content

Commit 5ff9772

Browse files
AndyTituedif2008
authored andcommitted
Use uniffi core for static methods
1 parent 77421bd commit 5ff9772

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/onepassword/secrets.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Code generated by op-codegen - DO NO EDIT MANUALLY
22

3-
from .core import Core
3+
from .core import Core, UniffiCore
44
from typing import Optional, List
55
from pydantic import TypeAdapter
66
from .types import GeneratePasswordResponse, PasswordRecipe, ResolveAllResponse
@@ -59,7 +59,7 @@ def validate_secret_reference(secret_reference: str) -> None:
5959
"""
6060
Validate the secret reference to ensure there are no syntax errors.
6161
"""
62-
response = self.core.invoke_sync(
62+
response = UniffiCore().invoke_sync(
6363
{
6464
"invocation": {
6565
"parameters": {
@@ -74,7 +74,7 @@ def validate_secret_reference(secret_reference: str) -> None:
7474

7575
@staticmethod
7676
def generate_password(recipe: PasswordRecipe) -> GeneratePasswordResponse:
77-
response = self.core.invoke_sync(
77+
response = UniffiCore().invoke_sync(
7878
{
7979
"invocation": {
8080
"parameters": {

0 commit comments

Comments
 (0)