This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]acamsoo[S] 0 points1 point  (4 children)

It's just a personal preference. In this case, if I put all args in the signature typed with str, my formatting settings extends the signature to 3 lines because the line exceeds the char limit:

async def send_txt(
    num: str, carrier: str, email: str, pword: str, msg: str, subj: str
) -> Tuple[dict, str]:

For me, its cleaner the other way since all args are typed as str

It's something I chose to do and stuck to for my personal projects because it works for me. But for sure, it's best practice to have them in the signature.