@@ -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
@@ -7202,7 +7202,7 @@ async def connect(
72027202 tls : Union [bool , TLSConfig ] = True ,
72037203 retry_config : Optional [RetryConfig ] = None ,
72047204 keep_alive_config : Optional [KeepAliveConfig ] = KeepAliveConfig .default ,
7205- rpc_metadata : Mapping [str , str ] = {},
7205+ rpc_metadata : Mapping [str , str | bytes ] = {},
72067206 identity : Optional [str ] = None ,
72077207 lazy : bool = False ,
72087208 runtime : Optional [temporalio .runtime .Runtime ] = None ,
@@ -7294,7 +7294,7 @@ def identity(self) -> str:
72947294 return self ._service_client .config .identity
72957295
72967296 @property
7297- def rpc_metadata (self ) -> Mapping [str , str ]:
7297+ def rpc_metadata (self ) -> Mapping [str , str | bytes ]:
72987298 """Headers for every call made by this client.
72997299
73007300 Do not use mutate this mapping. Rather, set this property with an
@@ -7304,7 +7304,7 @@ def rpc_metadata(self) -> Mapping[str, str]:
73047304 return self .service_client .config .rpc_metadata
73057305
73067306 @rpc_metadata .setter
7307- def rpc_metadata (self , value : Mapping [str , str ]) -> None :
7307+ def rpc_metadata (self , value : Mapping [str , str | bytes ]) -> None :
73087308 """Update the headers for this client.
73097309
73107310 Do not mutate this mapping after set. Rather, set an entirely new
0 commit comments