Skip to content

Conversation

@Starowoitowa
Copy link
Collaborator

No description provided.

@Chudopal Chudopal added the enhancement New feature or request label May 24, 2022
SHOPPING_RESULT = []
COAST_LIST= []
DICT = {}
class With_File_Working():
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Именование классов пишется без _, то есть вместо With_File_Working нужно написать WithFileWorking

self._path = path
self.name = name

def read_file(adress, name) -> List:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

нужно передать параметр self, и через него получать _path, а не передавать его в функцию явно

return data.get(name)

def user_menu() -> str:
def write_file(adress, data) -> None:
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

тоже, прокинуть self и из него получать _path

@Chudopal Chudopal removed the enhancement New feature or request label Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants