Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions assignment.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
(*FIRST, ) = [1, 2, 3]
(*FIRST, ) = [1, 2, 3]
*FIRST, a, b = [1, 2, 3]
(*FIRST,) = [1, 2, 3]
(*FIRST,) = [1, 2, 3]
*FIRST, a, b = [1, 2, 3]
4 changes: 2 additions & 2 deletions demo_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class BaseNumberGenerator:
"""Declare a method -- `get_number`."""

def __init__(self):
self.limits = (1, 10)
self.limits = (1, 10)

def get_number(self, min_max):
raise NotImplementedError
raise NotImplementedError

def smethod():
"""static method-to-be"""
Expand Down
42 changes: 25 additions & 17 deletions foo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import logging
nums = [ i for i in range(10)]

nums = [i for i in range(10)]

a = 1
b = 2
Expand All @@ -9,35 +10,42 @@
breakpoint()
print(b, nums)


def baz(a=[]):
return 0
return 0


def aaa(a=[]):
return 1
return 1


def foo(b=[]):
return 1
return 1


def bar(a):
return 1
return 1


import os

filename = os.tmpnam()
with open(filename, 'w') as f:
pass
with open(filename, "w") as f:
pass


def boom(a=[]):
breakpoint()
filename = os.tmpnam()
breakpoint()
return filename
breakpoint()
filename = os.tmpnam()
breakpoint()
return filename


def another_test_method():
f = open("/tmp/.deepsource.toml", "r")
f.write("config file.")
f.close()
print('abc')

filename = os.tmpnam()
f = open("/tmp/.deepsource.toml", "r")
f.write("config file.")
f.close()
print("abc")


filename = os.tmpnam()