[roll] Roll fuchsia [fidl][python] Import external library even just for bits and enum declarations

The fidlgen_python bindings would generally substitute int for any bits
or enum type, even when it came from an external library. There are some
corner cases where libraries only depend on another precisely for a bits
or enum declaration. As a result, those declarations were not imported,
and fidl_codec could not decode them.

This change modifies fidlgen_python to compile bits and enum types into
a union of either int or the type itself. Additionally, the
fidl._construct.unwrap_innermost_type_from_union function was written to
handle this more complex case. In particular, when compiling an
Optional[int | OtherType], unwrap_innermost_type needs to unwrap to
OtherType for proper decoding.

Test: Added a unit test for this corner case.
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1246545
Original-Revision: da0befc09eea5edf11013df17df8c08d2571fa91
GitOrigin-RevId: 58aa6d5437dfc8b0c5170dea1de331c5852865b4
Change-Id: I3c2205cfeae355e4248a210a9273d65fbc833bfe
1 file changed
tree: eef41a32e2b1220c425c271a7e39d94df5ca5d62
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cts
  6. firmware
  7. flower
  8. jiri.lock
  9. MILESTONE
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. test_durations
  15. toolchain
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.