Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
bad-continuation ignroe by defulat
  • Loading branch information
lmazuel committed Aug 1, 2019
commit 4fd65a7ed522061de4f413f0a22947f590775339
3 changes: 2 additions & 1 deletion pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ reports=no
# locally-disabled: Warning locally suppressed using disable-msg
# cyclic-import: because of https://github.com/PyCQA/pylint/issues/850
# too-many-arguments: Due to the nature of the CLI many commands have large arguments set which reflect in large arguments set in corresponding methods.
disable=useless-object-inheritance,missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods
# Let's black deal with bad-continuation
disable=useless-object-inheritance,missing-docstring,locally-disabled,fixme,cyclic-import,too-many-arguments,invalid-name,duplicate-code,too-few-public-methods,bad-continuation

[FORMAT]
max-line-length=120
Expand Down
14 changes: 7 additions & 7 deletions sdk/core/azure-core/azure/core/async_paging.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,14 @@ async def __anext__(self) -> ReturnType:

class AsyncPageIterator(AsyncIterator[AsyncIterator[ReturnType]]):
def __init__(
self, # pylint: disable=bad-continuation
get_next: Callable[ # pylint: disable=bad-continuation
self,
get_next: Callable[
[Optional[str]], Awaitable[ResponseType]
], # pylint: disable=bad-continuation
extract_data: Callable[ # pylint: disable=bad-continuation
],
extract_data: Callable[
[ResponseType], Awaitable[Tuple[str, AsyncIterator[ReturnType]]]
],
continuation_token: Optional[str] = None, # pylint: disable=bad-continuation
continuation_token: Optional[str] = None,
) -> None:
"""Return an async iterator of pages.

Expand Down Expand Up @@ -122,8 +122,8 @@ def __init__(self, *args, **kwargs) -> None:
)

def by_page(
self, # pylint: disable=bad-continuation
continuation_token: Optional[str] = None, # pylint: disable=bad-continuation
self,
continuation_token: Optional[str] = None,
) -> AsyncIterator[AsyncIterator[ReturnType]]:
"""Get an async iterator of pages of objects, instead of an async iterator of objects.

Expand Down
8 changes: 4 additions & 4 deletions sdk/core/azure-core/azure/core/paging.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@

class PageIterator(Iterator[Iterator[ReturnType]]):
def __init__(
self, # pylint: disable=bad-continuation
get_next, # type: Callable[[Optional[str]], ResponseType] # pylint: disable=bad-continuation
extract_data, # type: Callable[[ResponseType], Tuple[str, Iterable[ReturnType]]] # pylint: disable=bad-continuation
continuation_token=None, # type: Optional[str] # pylint: disable=bad-continuation
self,
get_next, # type: Callable[[Optional[str]], ResponseType]
extract_data, # type: Callable[[ResponseType], Tuple[str, Iterable[ReturnType]]]
continuation_token=None, # type: Optional[str]
):
"""Return an iterator of pages.

Expand Down