Clean up rbi files

This commit is contained in:
Douglas Eichelberger 2023-03-18 16:03:25 -07:00
parent abfe29040b
commit 4f2ff3819b
4 changed files with 4 additions and 27 deletions

View File

@ -1,8 +1,5 @@
# typed: strict
module GitRepositoryExtension
include Kernel
sig { params(args: T.any(String, Pathname)).returns(Pathname) }
def join(*args); end
requires_ancestor { Pathname }
end

View File

@ -1,19 +1,9 @@
# typed: strict
module DiskUsageExtension
include Kernel
def exist?; end
def symlink?; end
def resolved_path; end
requires_ancestor { Pathname }
end
module ObserverPathnameExtension
include Kernel
def dirname; end
def basename; end
requires_ancestor { Pathname }
end

View File

@ -45,7 +45,7 @@ module OS
sig { returns(T.self_type) }
def strip_patch
# Big Sur is 11.x but Catalina is 10.15.x.
if major >= 11
if T.must(major) >= 11
self.class.new(major.to_s)
else
major_minor

View File

@ -1,10 +0,0 @@
# typed: strict
module OS
module Mac
class Version
sig { returns(Token) }
def major; end
end
end
end