SyntaxError while installing plugins

When I tried to install sample plugin I got the syntax error

[root@cyberpanel ~]# cd /usr/local/CyberCP/pluginInstaller
[root@cyberpanel pluginInstaller]# python pluginInstaller.py install --pluginName examplePlugin
File “pluginInstaller.py”, line 26
def migrationsEnabled(pluginName: str) → bool:
^
SyntaxError: invalid syntax

I appreciate if anyone can help. I’m running latest version of CyberPanel 2.1