-
Notifications
You must be signed in to change notification settings - Fork 643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing content Class Variable in ProjectFile Class #2821
Comments
@GeorgeH87 generally all python-gitlab objects lack auto-completion in IDEs, because the attributes are dynamically populated based on the server response, which could change depending on GitLab versions, arguments provided, and the user's privileges. So I would definitely not rely on this in general. We only have auto-completion guaranteed for methods you can call on an object. But |
@nejch Thanks for explaining the approach to make the project file independent of possible Gitlab API changes. I just want to point out that this explanation would break with the method |
Ah nice catch @GeorgeH87, I guess we kind of depend on that then. If we're using it in the custom methods then we should add it. |
Description of the problem, including code/CLI snippet
The
ProjectFile
class lacks a class variable named content, as described in the documentation. This omission results in the absence of autocomplete support for this specific field, which is inconsistent with the documented behavior.According to the documentation, the
ProjectFile
class should contain a class variable namedcontent
. However, upon inspection of the codebase, it appears that this variable is missing. As a consequence, when utilizing IDEs or code editors with autocomplete features, users are unable to benefit from autocomplete support for the content field within theProjectFile
class.Expected Behavior
The
ProjectFile
class should include a class variable namedcontent
, as documented. This variable should be accessible and provide autocomplete support for users working with the class in various IDEs or code editors.Actual Behavior
ProjectFile
class definition.content
class variable or utilize autocomplete features for this field.Specifications
The text was updated successfully, but these errors were encountered: