-
-
Notifications
You must be signed in to change notification settings - Fork 11
Add support for strings and byte arrays #97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b7dc7f4
Add support for strings and byte arrays; fix https://github.com/OpenC…
pavel-kirienko ebe0734
Make deprecation transitive
pavel-kirienko ab0d2c9
Refactor the aggregation check logic to also use it for deprecation c…
pavel-kirienko c68c677
Add minor docs
pavel-kirienko a963f8c
Remove the aggregation check from the public API
pavel-kirienko 2d8f261
Merge branch 'master' into dev
pavel-kirienko 18f518a
Merge branch 'master' into dev
pavel-kirienko 3c8b28c
Add 'cyphal' as a standard root namespace
pavel-kirienko 1949fc6
fix workflow
pavel-kirienko 3ef1ecf
black
pavel-kirienko 946ca9f
Add a strict mode option. In the future we should refactor all option…
pavel-kirienko 6320a0a
allow byte and utf8 strings in strict mode
pavel-kirienko File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -7,11 +7,11 @@ | |
| import sys as _sys | ||
| from pathlib import Path as _Path | ||
|
|
||
| __version__ = "1.22.2" | ||
| __version__ = "1.23.0" | ||
| __version_info__ = tuple(map(int, __version__.split(".")[:3])) | ||
| __license__ = "MIT" | ||
| __author__ = "OpenCyphal" | ||
| __copyright__ = "Copyright (c) 2018 OpenCyphal" | ||
| __copyright__ = "Copyright (c) OpenCyphal development team" | ||
| __email__ = "[email protected]" | ||
|
|
||
| # Our unorthodox approach to dependency management requires us to apply certain workarounds. | ||
|
|
@@ -42,6 +42,8 @@ | |
| from ._serializable import IntegerType as IntegerType | ||
| from ._serializable import SignedIntegerType as SignedIntegerType | ||
| from ._serializable import UnsignedIntegerType as UnsignedIntegerType | ||
| from ._serializable import ByteType as ByteType | ||
| from ._serializable import UTF8Type as UTF8Type | ||
| from ._serializable import FloatType as FloatType | ||
| from ._serializable import VoidType as VoidType | ||
| from ._serializable import ArrayType as ArrayType | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that these types are not part of the current standard, should we add an "allow experimental" or, inversely, "strict" mode to ensure we can enforce 1.0 compatibility when using pydsdl?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a new strict mode option. In the future we should extract all options into a single Options dataclass. Right now we can't do it properly without breaking API compatibility.