@@ -118,7 +118,7 @@ async def connect(
118118 tls : Union [bool , TLSConfig ] = False ,
119119 retry_config : Optional [RetryConfig ] = None ,
120120 keep_alive_config : Optional [KeepAliveConfig ] = KeepAliveConfig .default ,
121- rpc_metadata : Mapping [str , str ] = {},
121+ rpc_metadata : Mapping [str , str | bytes ] = {},
122122 identity : Optional [str ] = None ,
123123 lazy : bool = False ,
124124 runtime : Optional [temporalio .runtime .Runtime ] = None ,
@@ -296,7 +296,7 @@ def data_converter(self) -> temporalio.converter.DataConverter:
296296 return self ._config ["data_converter" ]
297297
298298 @property
299- def rpc_metadata (self ) -> Mapping [str , str ]:
299+ def rpc_metadata (self ) -> Mapping [str , str | bytes ]:
300300 """Headers for every call made by this client.
301301
302302 Do not use mutate this mapping. Rather, set this property with an
@@ -305,7 +305,7 @@ def rpc_metadata(self) -> Mapping[str, str]:
305305 return self .service_client .config .rpc_metadata
306306
307307 @rpc_metadata .setter
308- def rpc_metadata (self , value : Mapping [str , str ]) -> None :
308+ def rpc_metadata (self , value : Mapping [str , str | bytes ]) -> None :
309309 """Update the headers for this client.
310310
311311 Do not mutate this mapping after set. Rather, set an entirely new
@@ -7209,7 +7209,7 @@ async def connect(
72097209 tls : Union [bool , TLSConfig ] = True ,
72107210 retry_config : Optional [RetryConfig ] = None ,
72117211 keep_alive_config : Optional [KeepAliveConfig ] = KeepAliveConfig .default ,
7212- rpc_metadata : Mapping [str , str ] = {},
7212+ rpc_metadata : Mapping [str , str | bytes ] = {},
72137213 identity : Optional [str ] = None ,
72147214 lazy : bool = False ,
72157215 runtime : Optional [temporalio .runtime .Runtime ] = None ,
@@ -7301,7 +7301,7 @@ def identity(self) -> str:
73017301 return self ._service_client .config .identity
73027302
73037303 @property
7304- def rpc_metadata (self ) -> Mapping [str , str ]:
7304+ def rpc_metadata (self ) -> Mapping [str , str | bytes ]:
73057305 """Headers for every call made by this client.
73067306
73077307 Do not use mutate this mapping. Rather, set this property with an
@@ -7311,7 +7311,7 @@ def rpc_metadata(self) -> Mapping[str, str]:
73117311 return self .service_client .config .rpc_metadata
73127312
73137313 @rpc_metadata .setter
7314- def rpc_metadata (self , value : Mapping [str , str ]) -> None :
7314+ def rpc_metadata (self , value : Mapping [str , str | bytes ]) -> None :
73157315 """Update the headers for this client.
73167316
73177317 Do not mutate this mapping after set. Rather, set an entirely new
0 commit comments