Skip to content

Commit

Permalink
component: support linked_component field
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Feb 23, 2024
1 parent 1e6d2e9 commit 1aaeb8c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Not yet released.
* Dropped support for Python 3.6.
* Tested against Python 3.11.
* Added support for the linked_component field.

1.13
----
Expand Down
8 changes: 7 additions & 1 deletion wlc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,8 +636,14 @@ class Component(LazyObject, RepoObjectMixin):
"priority",
"is_glossary",
"category",
"linked_component",
)
OPTIONALS: ClassVar[Set[str]] = {"source_language", "is_glossary", "category"}
OPTIONALS: ClassVar[Set[str]] = {
"source_language",
"is_glossary",
"category",
"linked_component",
}
ID: ClassVar[str] = "slug"
MAPPINGS: ClassVar[Dict[str, Any]] = {
"category": Category,
Expand Down

0 comments on commit 1aaeb8c

Please sign in to comment.