parameters: (self, extras=())
return_statement: return deps
docstring: List of Requirements needed for this distro if `extras` are used
docstring_summary: List of Requirements needed for this distro if `extras` are used
docstring_tokens: List of Requirements needed for this distro if extras are used
function: def requires(self, extras=()):
          """List of Requirements needed for this distro if `extras` are used"""
          dm = self._dep_map
          deps = []
          deps.extend(dm.get(None, ()))
          for ext in extras:
              try:
                  deps.extend(dm[safe_extra(ext)])
              except KeyError:
                  raise UnknownExtra(
                      "%s has no such extra feature %r" % (self, ext)
                  )
          return deps
function_tokens: def requires ( self , extras = ( ) ) : dm = self . _dep_map deps = [ ] deps . extend ( dm . get ( None , ( ) ) ) for ext in extras : try : deps . extend ( dm [ safe_extra ( ext ) ] ) except KeyError : raise UnknownExtra ( "%s has no such extra feature %r" % ( self , ext ) ) return deps