Skip to content

Metadata API: linting _type is an issue for API users #1375

@jku

Description

@jku

Any code that uses the Metadata API is going to get linting results like this:

file.py:299:11: W0212: Access to a protected member _type of a client class (protected-access)
file.py:301:41: W0212: Access to a protected member _type of a client class (protected-access)
file.py:336:11: W0212: Access to a protected member _type of a client class (protected-access)
file.py:338:46: W0212: Access to a protected member _type of a client class (protected-access)
file.py:396:11: W0212: Access to a protected member _type of a client class (protected-access)
file.py:398:45: W0212: Access to a protected member _type of a client class (protected-access)

Signed._type is named like it is to copy the file format 1-to-1 which makes some sense... but this is also pretty unacceptable. Maybe we should make another property type that works exactly like _type ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions