Skip to content

Commit 5542c8f

Browse files
AndyTituedif2008
authored andcommitted
Fix some of the linter issues
1 parent d9cb77d commit 5542c8f

File tree

9 files changed

+11
-9
lines changed

9 files changed

+11
-9
lines changed

src/onepassword/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44
import weakref
5-
from .core import Core, UniffiCore
5+
from .core import UniffiCore
66
from .desktop_core import DesktopCore
77
from .defaults import new_default_config, DesktopAuth
88
from .secrets import Secrets

src/onepassword/desktop_core.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import base64
66
from pathlib import Path
77
from ctypes import c_uint8, c_size_t, c_int32, POINTER, byref, c_void_p
8-
from .core import UniffiCore
98
from onepassword.errors import raise_typed_exception
109

1110

src/onepassword/groups.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ class Groups:
1212

1313
def __init__(self, client_id, core: Core):
1414
self.client_id = client_id
15+
self.core = core
1516

1617
async def get(self, group_id: str, group_params: GroupGetParams) -> Group:
1718
response = await self.core.invoke(

src/onepassword/items.py

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

3-
from typing import Optional, List
3+
from .core import Core
4+
from typing import List
45
from pydantic import TypeAdapter
56
from .items_shares import ItemsShares
67
from .items_files import ItemsFiles

src/onepassword/items_files.py

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

33
from .core import Core
4-
from typing import Optional, List
4+
from typing import List
55
from pydantic import TypeAdapter
66
from .types import DocumentCreateParams, FileAttributes, FileCreateParams, Item
77

88

99
class ItemsFiles:
10-
def __init__(self, client_id, core):
10+
def __init__(self, client_id, core: Core):
1111
self.client_id = client_id
1212
self.core = core
1313

src/onepassword/items_shares.py

Lines changed: 1 addition & 1 deletion
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 typing import Optional, List
3+
from typing import List
44
from pydantic import TypeAdapter
55
from .types import Item, ItemShareAccountPolicy, ItemShareParams, ValidRecipient
66

src/onepassword/secrets.py

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

33
from .core import Core, UniffiCore
4-
from typing import Optional, List
4+
from typing import List
55
from pydantic import TypeAdapter
66
from .types import GeneratePasswordResponse, PasswordRecipe, ResolveAllResponse
77

@@ -12,7 +12,7 @@ class Secrets:
1212
Use secret reference URIs to securely load secrets from 1Password: op://<vault-name>/<item-name>[/<section-name>]/<field-name>
1313
"""
1414

15-
def __init__(self, client_id, core):
15+
def __init__(self, client_id, core: Core):
1616
self.client_id = client_id
1717
self.core = core
1818

src/onepassword/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,7 @@ class WordListType(str, Enum):
15291529
Three (random) letter "words"
15301530
"""
15311531

1532+
15321533
ARCHIVE_ITEMS: int = 256
15331534
CREATE_ITEMS: int = 128
15341535
DELETE_ITEMS: int = 512

src/onepassword/vaults.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Vaults:
1818
The Vaults API holds all the operations the SDK client can perform on 1Password vaults.
1919
"""
2020

21-
def __init__(self, client_id, core):
21+
def __init__(self, client_id, core: Core):
2222
self.client_id = client_id
2323
self.core = core
2424

0 commit comments

Comments
 (0)