Skip to content

Commit 7f2f777

Browse files
committed
Steep fixes
1 parent 5af7ceb commit 7f2f777

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

temporalio/lib/temporalio/envconfig.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ def self.from_h(hash)
261261
profiles = hash.transform_values do |profile_hash|
262262
ClientConfigProfile.from_h(profile_hash)
263263
end
264-
new(profiles)
264+
new(profiles: profiles)
265265
end
266266

267267
# Load all client profiles from given sources.

temporalio/sig/temporalio/envconfig.rbs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
module Temporalio
22
module EnvConfig
3-
def self.source_to_path_and_data: (untyped source) -> [String?, Array[Integer]?]
3+
def self._source_to_path_and_data: (untyped source) -> [String?, Array[Integer]?]
44

55
class ClientConfigTLS
6-
attr_reader disabled: bool
6+
attr_reader disabled: bool?
77
attr_reader server_name: String?
88
attr_reader server_root_ca_cert: (Pathname | String)?
99
attr_reader client_cert: (Pathname | String)?
1010
attr_reader client_private_key: (Pathname | String)?
1111

12-
def self.from_hash: (Hash[untyped, untyped]? hash) -> ClientConfigTLS?
12+
def self.from_h: (Hash[untyped, untyped]? hash) -> ClientConfigTLS?
1313
def self.hash_to_source: (Hash[untyped, untyped]? hash) -> (Pathname | String)?
1414

1515
def initialize: (
16-
?disabled: bool,
16+
?disabled: bool?,
1717
?server_name: String?,
1818
?server_root_ca_cert: (Pathname | String)?,
1919
?client_cert: (Pathname | String)?,
2020
?client_private_key: (Pathname | String)?
2121
) -> void
2222

23-
def to_hash: -> Hash[Symbol, untyped]
24-
def to_connect_tls_config: -> (Hash[Symbol, untyped] | false)
23+
def to_h: -> Hash[Symbol, untyped]
24+
def to_tls_options: -> (untyped | false)
2525

2626
private
2727

@@ -36,7 +36,7 @@ module Temporalio
3636
attr_reader tls: ClientConfigTLS?
3737
attr_reader grpc_meta: Hash[untyped, untyped]
3838

39-
def self.from_hash: (Hash[untyped, untyped] hash) -> ClientConfigProfile
39+
def self.from_h: (Hash[untyped, untyped] hash) -> ClientConfigProfile
4040

4141
def self.load: (
4242
?profile: String?,
@@ -55,14 +55,14 @@ module Temporalio
5555
?grpc_meta: Hash[untyped, untyped]
5656
) -> void
5757

58-
def to_hash: -> Hash[Symbol, untyped]
59-
def to_client_connect_options: -> Hash[Symbol, untyped]
58+
def to_h: -> Hash[Symbol, untyped]
59+
def to_client_connect_options: -> [Array[untyped], Hash[Symbol, untyped]]
6060
end
6161

6262
class ClientConfig
6363
attr_reader profiles: Hash[String, ClientConfigProfile]
6464

65-
def self.from_hash: (Hash[untyped, untyped] hash) -> ClientConfig
65+
def self.from_h: (Hash[untyped, untyped] hash) -> ClientConfig
6666

6767
def self.load: (
6868
?config_source: (Pathname | String)?,
@@ -78,10 +78,10 @@ module Temporalio
7878
?disable_env: bool,
7979
?config_file_strict: bool,
8080
?override_env_vars: Hash[String, String]?
81-
) -> Hash[Symbol, untyped]
81+
) -> [Array[untyped], Hash[Symbol, untyped]]
8282

83-
def initialize: (Hash[String, ClientConfigProfile] profiles) -> void
84-
def to_hash: -> Hash[String, Hash[Symbol, untyped]]
83+
def initialize: (?profiles: Hash[String, ClientConfigProfile]) -> void
84+
def to_h: -> Hash[String, Hash[Symbol, untyped]]
8585
end
8686
end
8787
end

0 commit comments

Comments
 (0)