From 91e46d0c922975351795f10ec248efd041681625 Mon Sep 17 00:00:00 2001 From: Riccardo Foffi Date: Thu, 24 Oct 2024 00:18:58 +0200 Subject: [PATCH] don't need to specify `Any` type --- src/chemotaxis/celani.jl | 4 ++-- src/model.jl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/chemotaxis/celani.jl b/src/chemotaxis/celani.jl index 125f4e3..b3cf714 100644 --- a/src/chemotaxis/celani.jl +++ b/src/chemotaxis/celani.jl @@ -60,7 +60,7 @@ end # to initialize the markovian variables at steady state # depending on the concentration field at the agent position function Agents.add_agent!( - pos::Any, + pos, A::Type{<:Celani{D}}, model::AgentBasedModel, properties...; @@ -74,7 +74,7 @@ function Agents.add_agent!( end function Agents.add_agent!( - pos::Any, + pos, A::Type{Celani{D,N}}, model::AgentBasedModel, properties...; diff --git a/src/model.jl b/src/model.jl index bcf50ab..87701f4 100644 --- a/src/model.jl +++ b/src/model.jl @@ -56,7 +56,7 @@ end function Agents.add_agent!( - pos::Any, + pos, A::Type{<:AbstractMicrobe{D}}, model::AgentBasedModel, properties...; @@ -84,7 +84,7 @@ otherwise default values from the constructor will be used. If unspecified, a random velocity vector and a random speed are generated. """ function Agents.add_agent!( - pos::Any, + pos, A::Type{<:AbstractMicrobe{D,N}}, model::AgentBasedModel, properties...;