zakki / cgos

Computer Go Server mirror
10 stars 4 forks source link

A bug issue. #1

Closed CGLemon closed 1 year ago

CGLemon commented 1 year ago

I quickly report the bug here. I may send the pull request tomorrow. My python version is 3.8. Here is a bug for dict in the version.

TypeError: 'type' object is not subscriptable

The dict should be replaced by typing.Dict in my python version. For example,

gme: dict[int, GoGame] = dict()

should be

from typing import Dict
gme: Dict[int, GoGame] = dict()
zakki commented 1 year ago

Thank you