Skip to content

🛑 Remove private member access from _content.py and _urls.py #76

Open

Description

@cgl

These came up while renaming the package. There are two private-member access violations.

SLF001 Private member accessed: `_path`
   --> src/hip/_content.py:524:24
    |
522 |     def open(self) -> Stream:
523 |         form = [(key, value) for key, value in self._form.items()]
524 |         files = [(key, file._path) for key, file in self._files.items()]
    |                        ^^^^^^^^^^
525 |         return MultiPartStream(form, files, boundary=self._boundary)
    |

Found 1 error.
All checks passed!
SLF001 Private member accessed: `_uri_reference`
   --> src/hip/_urls.py:100:35
    |
 98 |             self._uri_reference = urlparse(url, **kwargs)
 99 |         elif isinstance(url, URL):
100 |             self._uri_reference = url._uri_reference.copy_with(**kwargs)
    |                                   ^^^^^^^^^^^^^^^^^^
101 |         else:
102 |             raise TypeError(

Activity

  1. changed the title [-]Remove private member access from _content.py and _urls.py[/-] [+]🛑 Remove private member access from _content.py and _urls.py[/+] on Oct 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    sprint candidateCould make for a good code sprint task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions