Path 1: 1281 calls (1.0)

{'imp', 'smtpd', 'macpath', 'xml.etree.cElementTree', 'tkinter.tix', 'symbol', 'typing.io', 'typing.re', 'optparse', 'binhex', 'asynchat', 'fpectl', '...

1def deprecated_modules(self) -> set[str]:
2        """Callback returning the deprecated modules."""
3        # First get the modules the user indicated
4        all_deprecated_modules = set(self.linter.config.deprecated_modules)
5        # Now get the hard-coded ones from the stdlib
6        for since_vers, mod_set in DEPRECATED_MODULES.items():
7            if since_vers <= sys.version_info:
8                all_deprecated_modules = all_deprecated_modules.union(mod_set)
9        return all_deprecated_modules