Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Type hinting style and PEP8
#2
(May-06-2020, 04:26 AM)hlovatt Wrote: I was wondering if there was a preferred style for type hinting
As you mentioned, PEP 8 predates type hinting, so it doesn't address it. Personally, I try to avoid extra things, so I'd go with the single-line approach.

(May-06-2020, 04:26 AM)hlovatt Wrote: Should PEP8 be modified to allow no blank line for overloads?
We could certainly have a discussion about that, but ultimately we don't make those decisions.
Reply


Messages In This Thread
Type hinting style and PEP8 - by hlovatt - May-06-2020, 04:26 AM
RE: Type hinting style and PEP8 - by micseydel - May-06-2020, 11:18 PM
RE: Type hinting style and PEP8 - by hlovatt - May-07-2020, 08:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  New to python, question regarding PEP8 AthertonH 3 1,512 Apr-14-2022, 06:49 AM
Last Post: buran
  Noob warning: trying to use pip to install pytest and pep8 in Command Prompt adifrank 4 5,345 Dec-20-2020, 04:23 AM
Last Post: adifrank
  Type hints and style MaxPowers 1 1,868 Feb-19-2020, 06:56 PM
Last Post: micseydel
  Type hinting - return type based on parameter micseydel 2 2,506 Jan-14-2020, 01:20 AM
Last Post: micseydel
  Visual Studio Code - PEP8 Lambda Issue Qui_Ten 1 2,735 Jan-28-2019, 08:17 AM
Last Post: buran

Forum Jump:

User Panel Messages

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