Merge pull request #17152 from alebcay/kernel-strict-typing

os/linux/kernel: enable strict typing
This commit is contained in:
Bo Anderson 2024-04-26 03:24:25 +01:00 committed by GitHub
commit 4bc1cc57f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
# typed: true # typed: strict
# frozen_string_literal: true # frozen_string_literal: true
module OS module OS
@ -14,6 +14,7 @@ module OS
Version.new "3.2" Version.new "3.2"
end end
sig { returns(T::Boolean) }
def below_minimum_version? def below_minimum_version?
OS.kernel_version < minimum_version OS.kernel_version < minimum_version
end end