code: def port(self):
          
          return self._val.port or DEFAULT_PORTS.get(self._val.scheme)
docs: Port part of URL, with scheme-based fallback.
  
          None for relative URLs or URLs without explicit port and
          scheme without default port substitution.