Skip to content

Commit

Permalink
Add more cases of comments to manage
Browse files Browse the repository at this point in the history
  • Loading branch information
jecisc committed Feb 13, 2025
1 parent 1947c92 commit a5e7a7f
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions resources/examples/project1/src/moduleAtRoot2.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# Comment in module at root 2

moduleAtRoot2Variable = 42 # Comment at the end of a line
moduleAtRoot2Variable = 42 # Comment after global
globalVariableWithCommonName = False

moduleAtRoot.sort_list(["a", "b", "c", "d", "e", "f", "g", "h", "i"], [0, 1, 1, 0, 1, 2, 2, 0, 1])
Expand Down Expand Up @@ -40,6 +40,19 @@ def function_with_comment_before():
return True


def function_with_locale_with_comment():
# Comment before temp
temp_after_comment = False
temp_before_comment = True # Comment after temp
return temp_after_comment | temp_before_comment


def function_with_conflicting_comment_attribution():
temp_conflicting_1 = True # Comment to attribute to temp 1 and not 2
temp_conflicting_2 = False
return temp_conflicting_2 & temp_conflicting_1


# Comment before global
globalInModuleAtRoot2 = False

Expand All @@ -51,7 +64,7 @@ class Person:

def __init__(self, name, age):
self.set_name(name)
self.age = age
self.age = age # Comment after ivar

def printInfos(self):
import moduleAtRoot4
Expand Down

0 comments on commit a5e7a7f

Please sign in to comment.