From bf3c1c5a55f62c14291decd72379a0958af2d272 Mon Sep 17 00:00:00 2001 From: ksss Date: Tue, 29 Sep 2026 12:00:14 +0900 Subject: [PATCH] Add annotation for `__dir__` --- core/kernel.rbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/kernel.rbs b/core/kernel.rbs index fac5a887d5..1b855f84f1 100644 --- a/core/kernel.rbs +++ b/core/kernel.rbs @@ -717,7 +717,7 @@ module Kernel : BasicObject # `__FILE__` is `nil`, it returns `nil`. The return value equals to # File.dirname(File.realpath(__FILE__)). # - def self?.__dir__: () -> String? + def self?.__dir__: %a{implicitly-returns-nil} () -> String #