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 #