InternetHealthReport / internet-yellow-pages

A knowledge graph for the Internet
https://iyp.iijlab.net
GNU General Public License v3.0
43 stars 18 forks source link

Refactoring `batch_format_link_properties` to Utilize Optional Return Type for in-place Mutation #96

Closed mohamedawnallah closed 10 months ago

mohamedawnallah commented 10 months ago

Description

The current functionality within batch_format_link_properties doesn't utilize the returned links when the inplace parameter is set to True. It's more conventionally sound not to return a value if we're already mutating in place.

Changes Made

How Has This Been Tested?

No alterations to the logic's behavior have been made. Testing ensured that the removal of the return value was correctly implemented, specifically when the inplace parameter is True.

Additional References

Python Optional typing hint: https://docs.python.org/3/library/typing.html#typing.Optional

Types of changes

Checklist: