File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 4747 - name : Lint with Ruff
4848 run : |
4949 pip install ruff
50- ruff check --output-format=github --exclude=src/onepassword/lib/ .
50+ ruff check --output-format=github --exclude=src/onepassword/lib/,example/ .
5151 continue-on-error : true
Original file line number Diff line number Diff line change @@ -15,8 +15,8 @@ async def main():
1515 )
1616
1717 # Retrieves a secret from 1Password. Takes a secret reference as input and returns the secret to which it points.
18- # value = await client.secrets.resolve("op://vault/item/field")
19- # print(value)
18+ value = await client .secrets .resolve ("op://vault/item/field" )
19+ print (value )
2020
2121 # Create an Item and add it to your vault.
2222 to_create = Item (
Original file line number Diff line number Diff line change 1616]
1717
1818for name , obj in inspect .getmembers (sys .modules ["onepassword.types" ]):
19- if inspect .isclass (obj ) or type (eval (name )) == typing ._LiteralGenericAlias :
19+ # Add all classes and instances of typing.Literal defined in types.py.
20+ if (inspect .isclass (obj ) and inspect .getmodule (obj ) == sys .modules ["onepassword.types" ]) or type (eval (name )) == typing ._LiteralGenericAlias :
2021 __all__ .append (name )
You can’t perform that action at this time.
0 commit comments