type.Annotated (3.9.0) error - Unexpected token at end of expression #479
Labels
bug
Something isn't working
fixed in next version (main)
A fix has been implemented and will appear in an upcoming version
Just started to play with python 3.9.0, and the attr package. I'm not sure if I have the correct syntax as I get the error messages. Program works.
`import pathlib as PP
from typing import Annotated as Ann
import attr
@attr.s
class GpxDist():
"""
get the distances in the gpx files
"""
gpxfilelist: Ann[list, "list of pathLib files, including paths",
[Ann[PP.Path, "PathLib file name with path"]]]
gpxfilename: Ann[PP.Path, "PathLib file name with path"]
stoppedsec: Ann[int, "number of seconds between points to be considered not moving"]
= attr.ib(default=90)
`
Is there a valid syntax?
The text was updated successfully, but these errors were encountered: