mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
put noqa at correct place
This commit is contained in:
parent
3de2755de5
commit
ef6d7b5a6c
1 changed files with 3 additions and 3 deletions
|
|
@ -18,13 +18,13 @@ def parse_ayon_entity_uri(uri: str) -> Optional[dict]:
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
>>> parse_ayon_entity_uri(
|
>>> parse_ayon_entity_uri(
|
||||||
>>> "ayon://test/char/villain?product=modelMain&version=2&representation=usd" # noqa: E501
|
>>> "ayon://test/char/villain?product=modelMain&version=2&representation=usd"
|
||||||
>>> )
|
>>> )
|
||||||
{'project': 'test', 'folderPath': '/char/villain',
|
{'project': 'test', 'folderPath': '/char/villain',
|
||||||
'product': 'modelMain', 'version': 1,
|
'product': 'modelMain', 'version': 1,
|
||||||
'representation': 'usd'}
|
'representation': 'usd'}
|
||||||
>>> parse_ayon_entity_uri(
|
>>> parse_ayon_entity_uri(
|
||||||
>>> "ayon+entity://project/folder?product=renderMain&version=3&representation=exr" # noqa: E501
|
>>> "ayon+entity://project/folder?product=renderMain&version=3&representation=exr"
|
||||||
>>> )
|
>>> )
|
||||||
{'project': 'project', 'folderPath': '/folder',
|
{'project': 'project', 'folderPath': '/folder',
|
||||||
'product': 'renderMain', 'version': 3,
|
'product': 'renderMain', 'version': 3,
|
||||||
|
|
@ -34,7 +34,7 @@ def parse_ayon_entity_uri(uri: str) -> Optional[dict]:
|
||||||
dict[str, Union[str, int]]: The individual key with their values as
|
dict[str, Union[str, int]]: The individual key with their values as
|
||||||
found in the ayon entity URI.
|
found in the ayon entity URI.
|
||||||
|
|
||||||
"""
|
""" # noqa: E501
|
||||||
|
|
||||||
if not (uri.startswith("ayon+entity://") or uri.startswith("ayon://")):
|
if not (uri.startswith("ayon+entity://") or uri.startswith("ayon://")):
|
||||||
return {}
|
return {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue