diff --git a/api/library/python/iterm2/iterm2/screen.py b/api/library/python/iterm2/iterm2/screen.py index 4f32744426..11af663ade 100644 --- a/api/library/python/iterm2/iterm2/screen.py +++ b/api/library/python/iterm2/iterm2/screen.py @@ -67,7 +67,7 @@ def url(self) -> str: return self._url.url @property - def identifier(self) -> str: + def identifier(self) -> typing.Optional[str]: """ Returns the optional identifier associated with the URL, if present. @@ -172,7 +172,7 @@ def repeats(self) -> int: return self._proto.repeats @property - def fg_color(self) -> 'CellStyle.Color': + def fg_color(self) -> typing.Optional['CellStyle.Color']: """ Returns the foreground color as a CellStyle.Color object. @@ -188,7 +188,7 @@ def fg_color(self) -> 'CellStyle.Color': return CellStyle.Color(placement=self._proto.fgAlternatePlacementX) @property - def bg_color(self) -> 'CellStyle.Color': + def bg_color(self) -> typing.Optional['CellStyle.Color']: """ Returns the background color as a CellStyle.Color object.