Skip to content

Commit

Permalink
resolving confict with data type
Browse files Browse the repository at this point in the history
  • Loading branch information
PietropaoloFrisoni committed Aug 22, 2023
1 parent 2eb013f commit 8853a19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion finquant/quants.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def treynor_ratio(
beta_parameter=beta,
risk_free_rate=risk_free_rate,
)
return (exp_return - risk_free_rate) / float(beta)
res_treynor_ratio: FLOAT = (exp_return - risk_free_rate) / beta
return res_treynor_ratio


def downside_risk(
Expand Down

0 comments on commit 8853a19

Please sign in to comment.