-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Introducing version | v parameter. * Consistent arguments of API v2. * Fix linting issues. * Changed response for cancelTask command in v2. * getStatus command response remains. * Fixing mypy issues. * Changing response for update command of v2. * Changing the response for listAllStatus command of v2. * Fix linting issue. * Partial revert: keeping id naming. * Minor: readability. * Ref: readbility for getStatus command branching. * Update octoprint_octorelay/__init__.py * Ref: Ensure int for version * Ref: todo for subject parameter name for next major release * Type constraints for listing command. * Fix linting issue. * UI: Switching to API v2.
- Loading branch information
Showing
6 changed files
with
164 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# -*- coding: utf-8 -*- | ||
from typing import List | ||
# todo after dropping 3.7 take TypedDict from typing instead | ||
from typing_extensions import TypedDict | ||
|
||
# false positive, see https://github.com/pylint-dev/pylint/issues/4166 | ||
# pylint: disable=too-many-ancestors | ||
# pylint: disable=too-few-public-methods | ||
class Element(TypedDict): | ||
id: str | ||
name: str | ||
status: bool | ||
|
||
Listing = List[Element] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters