Skip to content

Use final_internal_class with annotation_exclude#2

Open
martin-ro wants to merge 1 commit intonunomaduro:mainfrom
martin-ro:main
Open

Use final_internal_class with annotation_exclude#2
martin-ro wants to merge 1 commit intonunomaduro:mainfrom
martin-ro:main

Conversation

@martin-ro
Copy link

Removes final_class and uses instead

 "final_internal_class": {
      "annotation_include": [],
      "annotation_exclude": ["internal"]
    },

final_class is an alias for final_internal_class as explained here and in code here.

So using final_internal_class with "annotation_exclude": ["internal"] will still make all classes final unless we add @internal. This is handy if you want to extend classe in your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant