Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Type hints and style
#2
What about
class MyClass:
    def __init__(self) -> None:
        pass
 
    def my_func(
        self,
        arg1: int = 10,
        arg2: List[int]
    ) -> Generator[int, None, None]:
        ...
?
Reply


Messages In This Thread
Type hints and style - by MaxPowers - Feb-15-2020, 11:00 PM
RE: Type hints and style - by micseydel - Feb-19-2020, 06:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  SQLAlchemy with type hints gontajones 1 6,764 Jun-17-2020, 06:52 PM
Last Post: gontajones
  Type hinting style and PEP8 hlovatt 2 2,856 May-07-2020, 08:12 PM
Last Post: hlovatt
  Type hinting - return type based on parameter micseydel 2 2,492 Jan-14-2020, 01:20 AM
Last Post: micseydel
  Should a function ever be more permissive than its type hints? Shay 1 1,949 Mar-13-2019, 05:36 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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