Skip to content

TASK: Add smile method (#50)#55

Open
kavyangaHA wants to merge 1 commit intoTheGittyPerson:mainfrom
kavyangaHA:feature/smile-method
Open

TASK: Add smile method (#50)#55
kavyangaHA wants to merge 1 commit intoTheGittyPerson:mainfrom
kavyangaHA:feature/smile-method

Conversation

@kavyangaHA
Copy link

Summarize your changes here.
Closes #50

Changes

  • add a smile method
  • use emojis

Resolves #50

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thanks for opening your first PR on this repository! Make sure you've read our contributing guidelines — it's very important to us.

@TheGittyPerson TheGittyPerson changed the title add smile method to person class (#50) TASK: Add smile method (#50) Mar 19, 2026
@TheGittyPerson TheGittyPerson added enhancement New feature or request task This is a task issue / PR completing a task labels Mar 19, 2026
@TheGittyPerson
Copy link
Owner

Will be reviewing in an hour 👍

@TheGittyPerson TheGittyPerson self-requested a review March 19, 2026 05:46
Copy link
Owner

@TheGittyPerson TheGittyPerson left a comment

Choose a reason for hiding this comment

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

Thanks for your PR! Just a few formatting fixes before we move on

"""
print("\U0001f44b") # Unicode for waving hand emoji

def smile(self,smile_type:str = "😊") -> None:
Copy link
Owner

Choose a reason for hiding this comment

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

Since this is a static method, add @staticmethod before this line (and remove the self argument)

"""
print("\U0001f44b") # Unicode for waving hand emoji

def smile(self,smile_type:str = "😊") -> None:
Copy link
Owner

Choose a reason for hiding this comment

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

Also add a space after the comma and colon.

Comment on lines +66 to +68
"""Prints a smile emoji.
Args: smile_type:The type of smile to display.
options: '🙂', '☺️', '😊', '😁', '😄' """
Copy link
Owner

Choose a reason for hiding this comment

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

This is a bit weirdly formatted. Consider:

"""Print a smile emoji.

Args:
    smile_type: The type of smile to display.
                Options: '🙂', '☺️', '😊', '😁', '😄'
"""

Notice the docstring should also be in imperative mood instead of descriptive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request task This is a task issue / PR completing a task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TASK: Add smile method

2 participants