forked from jtpio/ipylab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added set_attribute method and added support for subclassing of Dispo…
…sableConnection with CommandConnection as the first. Commands can be enabled disabled and 'toggled' via configure. Added missingAsNull for get_attribute.
- Loading branch information
Alan Fleming
committed
Aug 25, 2024
1 parent
ee6306f
commit f06268e
Showing
13 changed files
with
274 additions
and
99 deletions.
There are no files selected for viewing
Empty file.
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 @@ | ||
from __future__ import annotations | ||
|
||
import sys | ||
|
||
if sys.version_info < (3, 11): | ||
from backports.strenum import StrEnum | ||
else: | ||
from enum import StrEnum | ||
|
||
__all__ = ["StrEnum"] | ||
|
||
|
||
def __dir__() -> list[str]: | ||
return __all__ |
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,17 @@ | ||
from __future__ import annotations | ||
|
||
import sys | ||
from typing import TYPE_CHECKING, Any, Optional, TypeAlias, TypedDict | ||
|
||
if sys.version_info < (3, 11): | ||
from typing import Optional | ||
|
||
from typing_extensions import Self, Unpack | ||
else: | ||
from typing import Optional, Self, Unpack | ||
|
||
__all__ = ["Optional", "TYPE_CHECKING", "Any", "TypeAlias", "TypedDict", "Self", "Unpack"] | ||
|
||
|
||
def __dir__() -> list[str]: | ||
return __all__ |
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
Oops, something went wrong.