Type annotate the self.default methods

This commit is contained in:
Alex Ling
2020-05-17 06:28:33 +00:00
parent bd8ae9497f
commit 7233e6e5c3
6 changed files with 7 additions and 7 deletions

View File

@@ -133,7 +133,7 @@ module MangaDex
end
class API
def self.default
def self.default : self
unless @@default
@@default = new
end

View File

@@ -82,7 +82,7 @@ module MangaDex
property downloader : Downloader?
@path : String
def self.default
def self.default : self
unless @@default
@@default = new
end
@@ -270,7 +270,7 @@ module MangaDex
@library_path : String = Config.current.library_path
@downloading = false
def self.default
def self.default : self
unless @@default
@@default = new
end