From 6cb7c4c01bc87b445f6f08bd5bdf828cae5b6b21 Mon Sep 17 00:00:00 2001 From: Tony Hsu Date: Wed, 14 Aug 2024 11:17:33 +0200 Subject: [PATCH] Improve at_fork_monkey_patch.rbs --- sig/datadog/core/utils/at_fork_monkey_patch.rbs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sig/datadog/core/utils/at_fork_monkey_patch.rbs b/sig/datadog/core/utils/at_fork_monkey_patch.rbs index 04036f322b0..274a2cfb601 100644 --- a/sig/datadog/core/utils/at_fork_monkey_patch.rbs +++ b/sig/datadog/core/utils/at_fork_monkey_patch.rbs @@ -4,20 +4,20 @@ module Datadog module AtForkMonkeyPatch AT_FORK_CHILD_BLOCKS: ::Array[untyped] - def self.supported?: () -> untyped + def self.supported?: () -> (false | true) def self.apply!: () -> (false | true) - def self.run_at_fork_blocks: (untyped stage) -> untyped + def self.run_at_fork_blocks: (Symbol stage) -> void - def self.at_fork: (untyped stage) ?{ () -> untyped } -> true + def self.at_fork: (Symbol stage) { () -> untyped } -> true module KernelMonkeyPatch def fork: () ?{ () -> untyped } -> untyped end module ProcessMonkeyPatch - def _fork: () -> untyped + def _fork: () -> Integer def daemon: (*untyped args) -> untyped end