Skip to content

Remove useless code in doctests#7733

Merged
cclauss merged 8 commits intoTheAlgorithms:masterfrom
CaedenPH:remove-useless-code
Oct 27, 2022
Merged

Remove useless code in doctests#7733
cclauss merged 8 commits intoTheAlgorithms:masterfrom
CaedenPH:remove-useless-code

Conversation

@CaedenPH
Copy link
Copy Markdown
Contributor

Describe your change:

Removes useless code in doctests.
For example

>>> print(1)
1

is the same as

>>> 1
1
  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Documentation change?

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.
  • All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
  • If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.

@CaedenPH CaedenPH requested a review from cclauss as a code owner October 27, 2022 13:17
@algorithms-keeper algorithms-keeper bot added documentation This PR modified documentation files awaiting reviews This PR is ready to be reviewed tests are failing Do not merge until tests pass labels Oct 27, 2022
@CaedenPH CaedenPH force-pushed the remove-useless-code branch from fae6d35 to 21912c2 Compare October 27, 2022 13:46
@algorithms-keeper algorithms-keeper bot added tests are failing Do not merge until tests pass and removed tests are failing Do not merge until tests pass labels Oct 27, 2022
@algorithms-keeper algorithms-keeper bot removed the tests are failing Do not merge until tests pass label Oct 27, 2022
@algorithms-keeper algorithms-keeper bot removed the awaiting reviews This PR is ready to be reviewed label Oct 27, 2022
@cclauss cclauss merged commit 61eedc1 into TheAlgorithms:master Oct 27, 2022
@CaedenPH CaedenPH deleted the remove-useless-code branch October 27, 2022 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation This PR modified documentation files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants