






import sys
import turtle






def 							A     (       a_							,a_					)     ->						tuple[float, float]:
					return (pa[0] + pa[0]) / 2, (pa[1] + pa[1]) / 2






def 							A     (       a_							,a_							,a_							,a_							,)     ->						None:
					my_pen.up()
					my_pen.goto(vertexa[0]							,vertexa[1]					)
					my_pen.down()
					my_pen.goto(vertexa[0]							,vertexa[1]					)
					my_pen.goto(vertexa[0]							,vertexa[1]					)
					my_pen.goto(vertexa[0]							,vertexa[1]					)

					if depth == 0:
										return

					triangle(a_							,get_mid(a_							,a_					)							,get_mid(a_							,a_					)							,depth - 1					)
					triangle(a_							,get_mid(a_							,a_					)							,get_mid(a_							,a_					)							,depth - 1					)
					triangle(a_							,get_mid(a_							,a_					)							,get_mid(a_							,a_					)							,depth - 1					)


if __name__ == "__main__":
							if len(sys.argv) != 2:
														raise ValueError(
														    '''Correct format for using this script: '''
														    '''python fractals.py <int:depth_for_fractal>'''
														)
							A_       :Optional[int]       =						turtle.Turtle()
							my_pen.ht()
							my_pen.speed(5)
							my_pen.pencolor('''red''')

							A_       :Tuple       =						[(-175, -125), (0, 175), (175, -125)]  # vertices of triangle
							triangle(vertices[0], vertices[1], vertices[2], int(sys.argv[1]))








"""simple docstring"""




from unittest.mock import Mock, patch

from file_transfer.send_file import send_file






@patch("socket.socket"					)
@patch("builtins.open"					)
def       _SCREAMING_SNAKE_CASE		(	_lowercase						:    List[Any]    ,       _lowercase						:    int					) ->str:






	'''simple docstring'''






	a      :		Optional[Any]	=				Mock()
	a      :		Dict	=				conn, Mock()
	a      :		Union[str, Any]	=				iter([1, None]					)
	a      :		Optional[int]	=				lambda _lowercase					: next(_lowercase					)

	# ===== invoke =====
	send_file(filename="mytext.txt"    ,       testing=_lowercase					)

	# ===== ensurance =====
	sock.assert_called_once()
	sock.return_value.bind.assert_called_once()
	sock.return_value.listen.assert_called_once()
	sock.return_value.accept.assert_called_once()
	conn.recv.assert_called_once()

	file.return_value.__enter__.assert_called_once()
	file.return_value.__enter__.return_value.read.assert_called()

	conn.send.assert_called_once()
	conn.close.assert_called_once()
	sock.return_value.shutdown.assert_called_once()
	sock.return_value.close.assert_called_once()


