Skip to content

Commit f060ebf

Browse files
authored
Fix DifferentMethodParameterKind (#5014)
1 parent 5f8cb92 commit f060ebf

File tree

19 files changed

+48
-48
lines changed

19 files changed

+48
-48
lines changed

Steepfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ target :datadog do
2121

2222
# These first checks are likely the easiest to fix, given they capture a mismatch
2323
# between the already declared type in `.rbs` and the actual type inferred by Steep.
24-
hash[Ruby::DifferentMethodParameterKind] = :information
2524
hash[Ruby::IncompatibleAssignment] = :information
2625

2726
# These checks are a bit harder, because they represent the lack of sufficient type information.

sig/datadog/appsec/thread_safe_ref.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Datadog
1111

1212
@mutex: ::Mutex
1313

14-
def initialize: (untyped initial_obj) -> void
14+
def initialize: (WAF::Handle initial_obj, ?finalizer: Symbol) -> void
1515

1616
def acquire: () -> untyped
1717

sig/datadog/core/crashtracking/component.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ module Datadog
2020

2121
def start: -> void
2222

23-
def update_on_fork: (settings: Datadog::Core::Configuration::Settings) -> void
23+
def update_on_fork: (?settings: Datadog::Core::Configuration::Settings) -> void
2424

2525
def stop: -> void
2626

sig/datadog/core/diagnostics/environment_logger.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module Datadog
1414
module EnvironmentLogger
1515
extend EnvironmentLogging
1616

17-
def self.collect_and_log!: (Hash[Symbol, untyped] extra_fields) -> void
17+
def self.collect_and_log!: (?Hash[Symbol, untyped]? extra_fields) -> void
1818
end
1919
module EnvironmentCollector
2020
def self.collect_config!: () -> { date: untyped, os_name: untyped, version: untyped, lang: untyped, lang_version: untyped, env: untyped, service: untyped, dd_version: untyped, debug: untyped, tags: untyped, runtime_metrics_enabled: untyped, vm: untyped, health_metrics_enabled: untyped }

sig/datadog/core/environment/agent_info.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module Datadog
44
class AgentInfo
55
attr_reader agent_settings: Configuration::AgentSettings
66

7-
def initialize: (Configuration::AgentSettings agent_settings, logger: Core::Logger) -> void
7+
def initialize: (Configuration::AgentSettings agent_settings, ?logger: Core::Logger) -> void
88

99
def fetch: -> Remote::Transport::HTTP::Negotiation::Response?
1010
end

sig/datadog/core/remote/client.rbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ module Datadog
1717
attr_reader dispatcher: Remote::Dispatcher
1818

1919
attr_reader capabilities: Capabilities
20-
20+
2121
attr_reader logger: Core::Logger
2222

23-
def initialize: (Datadog::Core::Remote::Transport::Config::Transport transport, Capabilities capabilities, ?repository: Configuration::Repository, logger: Core::Logger) -> void
23+
def initialize: (Datadog::Core::Remote::Transport::Config::Transport transport, Capabilities capabilities, ?logger: Core::Logger, ?repository: Configuration::Repository) -> void
2424

2525
def sync: () -> void
2626

@@ -38,7 +38,7 @@ module Datadog
3838
def tracer_version: () -> ::String
3939
def native_platform: () -> ::String
4040
def ruby_engine_version: () -> ::String
41-
41+
4242
def process_response: (untyped response) -> untyped
4343
def apply_config: (untyped paths, untyped targets, untyped contents) -> untyped
4444

sig/datadog/core/remote/negotiation.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ module Datadog
44
class Negotiation
55
@transport_root: Datadog::Core::Remote::Transport::Negotiation::Transport
66
@logged: ::Hash[::Symbol, bool]
7-
7+
88
attr_reader logger: Core::Logger
99

10-
def initialize: (Datadog::Core::Configuration::Settings _settings, Datadog::Core::Configuration::AgentSettings agent_settings, logger: Core::Logger, ?suppress_logging: ::Hash[::Symbol, bool]) -> void
10+
def initialize: (Datadog::Core::Configuration::Settings _settings, Datadog::Core::Configuration::AgentSettings agent_settings, ?logger: Core::Logger, ?suppress_logging: ::Hash[::Symbol, bool]) -> void
1111

1212
def endpoint?: (::String path) -> bool
1313

sig/datadog/core/semaphore.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module Datadog
99

1010
def signal: () -> void
1111

12-
def wait: (Numeric|nil timeout) -> void
12+
def wait: (?Numeric? timeout) -> void
1313

1414
private
1515

sig/datadog/core/telemetry/component.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module Datadog
3838

3939
def integrations_change!: () -> void
4040

41-
def app_endpoints_loaded: (Event::AppEndpointsLoaded::endpoints endpoints, page_size: Integer) -> void
41+
def app_endpoints_loaded: (Event::AppEndpointsLoaded::endpoints endpoints, ?page_size: Integer) -> void
4242

4343
def inc: (String namespace, String metric_name, Datadog::Core::Telemetry::Metric::input_value value, ?tags: Datadog::Core::Telemetry::Metric::tags_input, ?common: bool) -> void
4444

sig/datadog/core/telemetry/request.rbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ module Datadog
22
module Core
33
module Telemetry
44
module Request
5-
def self.build_payload: (Event::Base event, int seq_id, ?debug: bool) -> ::Hash[Symbol, untyped]
5+
def self.build_payload: (Event::Base event, int seq_id, ?api_version: String, ?debug: bool) -> ::Hash[Symbol, untyped]
66

77
private
88

0 commit comments

Comments
 (0)