Python Forum
meaning of -> syntax in function definition
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
meaning of -> syntax in function definition
#5
As Yoriz mentioned, if you are using Python 3.9 or newer you can use list[str]. If you are using an older version of Python you need to use List[str] and in spellecheckwrapper.py modify the import.
from typing import Callable, List
DrakeSoft likes this post
Reply


Messages In This Thread
RE: meaning of -> syntax in function definition - by deanhystad - Apr-08-2022, 08:46 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  class definition and problem with a method HerrAyas 2 433 Apr-01-2024, 03:34 PM
Last Post: HerrAyas
  Unable to understand the meaning of the line of code. jahuja73 0 452 Jan-23-2024, 05:09 AM
Last Post: jahuja73
  mutable argument in function definition akbarza 1 622 Dec-15-2023, 02:00 PM
Last Post: deanhystad
  error occuring in definition a class akbarza 3 923 Nov-26-2023, 09:28 AM
Last Post: Yoriz
  determine parameter type in definition function akbarza 1 707 Aug-24-2023, 01:46 PM
Last Post: deanhystad
  [split] Explain the python code in this definition Led_Zeppelin 1 835 Jan-13-2023, 10:20 PM
Last Post: deanhystad
  [Solved] unkown (to me) function def parm "name1:name2" syntax. MvGulik 5 1,256 Nov-11-2022, 11:21 AM
Last Post: MvGulik
  Explain the python code in this definition Led_Zeppelin 1 1,212 Oct-27-2022, 04:04 AM
Last Post: deanhystad
  Csv writer meaning of quoting mg24 2 1,292 Oct-01-2022, 02:16 PM
Last Post: Gribouillis
Star I'm getting syntax error while using input function in def. yecktmpmbyrv 1 2,095 Oct-06-2021, 09:39 AM
Last Post: menator01

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020