question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How can I hide data-class generated methods?

See original GitHub issue

I am looking for a way to remove componentX() and copy(...) methods of a data class from my Dokka generated Javadoc. Is there a way to do that?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

18reactions
superbobrycommented, Jun 30, 2016

Well, nobody likes boilerplate documentation, so you could consider adding a tag for hiding methods, e.g. @exclude copy, component*.

0reactions
saschpecommented, Jun 18, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

dataclasses — Data Classes — Python 3.11.1 documentation
This module provides a decorator and functions for automatically adding generated special methods such as __init__() and __repr__() to user-defined classes. It ...
Read more >
How to remove dataclass attributes - python - Stack Overflow
from dataclasses import dataclass from typing import Optional, Dict, ... My first approach was to figure out a way to remove any item...
Read more >
Data Classes in Python 3.7+ (Guide)
A data class is a regular Python class. The only thing that sets it apart is that it has basic data model methods...
Read more >
Disable componentN() generation in data classes
It seems to be IDE problem, not language problem. The solution could be to introduce a special method annotation like @Generated which is...
Read more >
Reconciling Dataclasses And Properties In Python
Dataclasses generate the __init__() method for you — and that's great. They even provide a __post_init__() hook method in case you want to ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found