mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-20 00:00:48 -04:00
Type annotate the self.default methods
This commit is contained in:
@@ -133,7 +133,7 @@ module MangaDex
|
||||
end
|
||||
|
||||
class API
|
||||
def self.default
|
||||
def self.default : self
|
||||
unless @@default
|
||||
@@default = new
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user