-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Description
I have a codebase that is annotated where I'm introducing an integration with an another project. This integration takes the form of subclassing a super-class from their codebase.
I don't want to allow subclassing of Any for my entire codebase, I really would like to just allow it for this specific module.
(Specifically, when I add the following to setup.cfg:
[mypy-jenkins_job_linter.jjb_subcommand]
disallow_subclassing_any = False
I see this in the output:
setup.cfg: [mypy-jenkins_job_linter.jjb_subcommand]: Per-module sections should only specify per-module flags (disallow_subclassing_any)
...
jenkins_job_linter/jjb_subcommand.py:14: error: Class cannot subclass 'TestSubCommand' (has type 'Any')
)
Metadata
Metadata
Assignees
Labels
No labels