mirror of
https://github.com/subutux/rmapy.git
synced 2025-12-08 14:43:24 +00:00
Cleanup typehints & docstrings
This commit is contained in:
@@ -18,7 +18,7 @@ from .const import (RFC3339Nano,
|
|||||||
|
|
||||||
log = getLogger("rmapipy.rmapi")
|
log = getLogger("rmapipy.rmapi")
|
||||||
|
|
||||||
DocOrFolder = TypeVar('A', Document, Folder)
|
DocOrFolder = TypeVar('DocumentOrFolder', Document, Folder)
|
||||||
|
|
||||||
|
|
||||||
class Client(object):
|
class Client(object):
|
||||||
@@ -296,9 +296,12 @@ class Client(object):
|
|||||||
"""Create a new folder meta object.
|
"""Create a new folder meta object.
|
||||||
|
|
||||||
This needs to be done in 3 steps:
|
This needs to be done in 3 steps:
|
||||||
1. Create an upload request for a new CollectionType meta object
|
|
||||||
|
1. Create an upload request for a new CollectionType meta object.
|
||||||
|
|
||||||
2. Upload a zipfile with a *.content file containing
|
2. Upload a zipfile with a *.content file containing
|
||||||
an empty object
|
an empty object.
|
||||||
|
|
||||||
3. Update the meta object with the new name.
|
3. Update the meta object with the new name.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ from .document import Document
|
|||||||
from .folder import Folder
|
from .folder import Folder
|
||||||
from typing import NoReturn, TypeVar
|
from typing import NoReturn, TypeVar
|
||||||
|
|
||||||
DocOrFolder = TypeVar('A', Document, Folder)
|
DocOrFolder = TypeVar('DocumentOrFolder', Document, Folder)
|
||||||
|
|
||||||
|
|
||||||
class Collection(object):
|
class Collection(object):
|
||||||
|
|||||||
Reference in New Issue
Block a user