Skip to content

Commit

Permalink
docs: fix anno warnings after renames (#4924)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rathoz authored Oct 20, 2024
1 parent cf34b77 commit 5d97477
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion components/squad/commons/squad_row.lua
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ function SquadRow:newteam()
return self
end

---@return WidgetTr
---@return Widget
function SquadRow:create()
-- Set row background for certain roles
local backgrounds = {'Player'}
Expand Down
6 changes: 3 additions & 3 deletions components/squad/commons/squad_utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ end

---@param frame table
---@param squadWidget SquadWidget
---@param rowCreator fun(player: table, squadType: integer):WidgetTr
---@param rowCreator fun(player: table, squadType: integer):Widget
---@return Widget
function SquadUtils.defaultRunManual(frame, squadWidget, rowCreator)
local args = Arguments.getArgs(frame)
Expand All @@ -204,7 +204,7 @@ end
---@param players table[]
---@param squadType SquadType
---@param squadWidget SquadWidget
---@param rowCreator fun(person: table, squadType: integer):WidgetTr
---@param rowCreator fun(person: table, squadType: integer):Widget
---@param customTitle string?
---@param personMapper? fun(person: table): table
---@return Widget
Expand All @@ -226,7 +226,7 @@ function SquadUtils.defaultRunAuto(players, squadType, squadWidget, rowCreator,
end

---@param squadRowClass SquadRow
---@return fun(person: table, squadType: integer):WidgetTr
---@return fun(person: table, squadType: integer):Widget
function SquadUtils.defaultRow(squadRowClass)
return function(person, squadType)
local squadPerson = SquadUtils.readSquadPersonArgs(Table.merge(person, {type = squadType}))
Expand Down
2 changes: 1 addition & 1 deletion components/squad/wikis/overwatch/squad_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ end
---@param person table
---@param squadType integer
---@param showNumber boolean
---@return WidgetTr
---@return Widget
function CustomSquad._playerRow(person, squadType, showNumber)
local squadPerson = SquadUtils.readSquadPersonArgs(Table.merge(person, {type = squadType}))
squadPerson.extradata.number = person.number
Expand Down
2 changes: 1 addition & 1 deletion components/squad/wikis/starcraft2/squad_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ end

---@param person table
---@param squadType integer
---@return WidgetTr
---@return Widget
function CustomSquad._playerRow(person, squadType)
local squadPerson = SquadUtils.readSquadPersonArgs(Table.merge(person, {type = squadType}))
local squadArgs = Arguments.getArgs(mw.getCurrentFrame())
Expand Down
2 changes: 1 addition & 1 deletion components/squad/wikis/stormgate/squad_custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ end

---@param person table
---@param squadType integer
---@return WidgetTr
---@return Widget
function CustomSquad._playerRow(person, squadType)
local squadPerson = SquadUtils.readSquadPersonArgs(Table.merge(person, {type = squadType}))
if Logic.isEmpty(squadPerson.newteam) then
Expand Down
4 changes: 2 additions & 2 deletions components/widget/squad/widget_squad_core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ end

---@param type SquadType
---@param title string?
---@return WidgetTr?
---@return Widget?
function Squad:_title(type, title)
local defaultTitle
if type == SquadUtils.SquadType.FORMER or type == SquadUtils.SquadType.FORMER_INACTIVE then
Expand All @@ -63,7 +63,7 @@ function Squad:_title(type, title)
end

---@param type SquadType
---@return WidgetTr
---@return Widget
function Squad:_header(type)
local isInactive = type == SquadUtils.SquadType.INACTIVE or type == SquadUtils.SquadType.FORMER_INACTIVE
local isFormer = type == SquadUtils.SquadType.FORMER or type == SquadUtils.SquadType.FORMER_INACTIVE
Expand Down
4 changes: 2 additions & 2 deletions components/widget/squad/widget_squad_core_tldb.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local SquadWidget = Lua.import('Module:Widget/Squad/Core')
local SquadTldb = Class.new(SquadWidget)

---@param type SquadType
---@return WidgetTr
---@return Widget
function SquadTldb:header(type)
return Widgets.Tr{
classes = {'HeaderRow'},
Expand All @@ -33,7 +33,7 @@ end

---@param type SquadType
---@param title string?
---@return WidgetTr?
---@return Widget?
function SquadTldb:_title(type, title)
return nil
end
Expand Down

0 comments on commit 5d97477

Please sign in to comment.