          mask_inputs = [inp for inp in self._inputs if inp.name.startswith("mask")]
          return None if not mask_inputs else mask_inputs
  
      @property
      def _mask_shapes(self) -> T.Optional[T.List[tuple]]:
          """ list: The list of shape tuples for the mask input tensors for the model. Returns
          ``None`` if there is no mask input. """
          if self._mask_inputs is None:
              return None
          return [K.int_shape(mask_input) for mask_input in self._mask_inputs]
 
</s> remove     def _mask_inputs(self) -> T.Optional[list]:
 </s> add     def _mask_inputs(self) -> list | None: </s> remove     def session_ids(self) -> List[int]:
 </s> add     def session_ids(self) -> list[int]: </s> remove                  input_shape: T.Optional[T.Tuple[int, int, int]] = None) -> None:
 </s> add                  input_shape: tuple[int, int, int] | None = None) -> None: </s> remove     def _get_inputs(self) -> T.List[tf.keras.layers.Input]:
 </s> add     def _get_inputs(self) -> list[tf.keras.layers.Input]: </s> remove     def input_images(self) -> Union[str, List[str]]:
 </s> add     def input_images(self) -> str | list[str]:
    def _mask_shapes(self) -> list[tuple] | None:
          mask_inputs = [inp for inp in self._inputs if inp.name.startswith("mask")]
          return None if not mask_inputs else mask_inputs
  
      @property
    def _mask_shapes(self) -> list[tuple] | None:
          """ list: The list of shape tuples for the mask input tensors for the model. Returns
          ``None`` if there is no mask input. """
          if self._mask_inputs is None:
              return None
          return [K.int_shape(mask_input) for mask_input in self._mask_inputs]
keep keep keep keep replace keep keep keep keep keep
 Rebase code (#1326)

* Remove tensorflow_probability requirement

* setup.py - fix progress bars

* requirements.txt: Remove pre python 3.9 packages

* update apple requirements.txt

* update INSTALL.md

* Remove python<3.9 code

* setup.py - fix Windows Installer

* typing: python3.9 compliant

* Update pytest and readthedocs python versions

* typing fixes

* Python Version updates
  - Reduce max version to 3.10
  - Default to 3.10 in installers
  - Remove incompatible 3.11 tests

* Update dependencies

* Downgrade imageio dep for Windows

* typing: merge optional unions and fixes

* Updates
  - min python version 3.10
  - typing to python 3.10 spec
  - remove pre-tf2.10 code
  - Add conda tests

* train: re-enable optimizer saving

* Update dockerfiles

* Update setup.py
  - Apple Conda deps to setup.py
  - Better Cuda + dependency handling

* bugfix: Patch logging to prevent Autograph errors

* Update dockerfiles

* Setup.py - Setup.py - stdout to utf-8

* Add more OSes to github Actions

* suppress mac-os end to end test 
plugins/train/model/_base/settings.py