question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider the following example which causes a merge conflict:

# developer 1
-from typing import Dict, List
+from typing import Any, Dict, List
# developer 2
-from typing import Dict, List
+from typing import Dict, List, Tuple

no conflict with the style enforced by reorder-python-imports:

+from typing import Any
 from typing import Dict
 from typing import List
+from typing import Tuple

Why not

from typing import (
+    Any,
     Dict,
     List,
+    Tuple,
)

?

It also doesn’t conflicts and you have shorter, maybe even more readable lines.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
asottilecommented, Oct 1, 2022

if you’re interpreting “no” as “tearing you a new one” you need to seriously reconsider your sensitivity

0reactions
con-f-usecommented, Oct 1, 2022

Fair enough, thanks for the answer. I do appreciate the tools existence and your time, wish that would have been your first reply. I didn’t open an additional issue, because this one was close enough and “why this style?” seemed sufficiently open a title inviting discussion in lieu of an official designated area. I just thought, not everyone needs to avoid merge conflicts that consequently and being open for a bit of personal style might be possible. You do have very specific and very well-founded ideas on how an issue tracker is supposed to be used and what exactly your tool want to achieve, based on a long and distinguished career. Just please remember that is not the case for everyone and not everyone shares the same ideas or has that much specific experience. In no case is that a reason to tear someone a new one. Correct me if I’m wrong, but I don’t think I was particularly disrespectful or committed some sort of universally accepted faux pas.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WHY THIS IS THE ONLY STYLE RULE YOU NEED ... - YouTube
HOW TO STYLE WITH DETAILMY FUNDAMENTAL STYLE RULE1 - ARKET t-shirt (S): https://c.klar.na/al/7Z5I/Sanna NY trousers (old), ...
Read more >
Leadership Styles: The 11 Most Common & How to Find Your ...
Why this leadership style is good for the team: Democratic leadership is one of the most effective leadership styles. This is because it...
Read more >
why javascript this.style[property] return an empty string?
The .style property is for getting styles that were placed directly on the element. It doesn't compute styles from your stylesheets.
Read more >
The Most Famous Art Movements and Styles | Artland Magazine
Essential Art Movements and Styles ; Abstract Expressionism; Art Deco; Art Nouveau; Avant-garde; Baroque ; Classicism; CoBrA; Color Field Painting; Conceptual Art ...
Read more >
Thoughts on why this style of design is so popular in Big Tech ...
“The Alegria style lends itself to standardization and replication: Its flat figures are based on simple shapes and geometric patterns. On a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found