Pathos315 / sciscraper

A bulk academic PDF extractor program, designed specifically for papers about behavioral science and design.
MIT License
12 stars 5 forks source link

Greatly improved typehints #11

Closed trag1c closed 1 year ago

trag1c commented 1 year ago
  1. Updated typehints to use pipe union syntax instead of typing.Optional[T] or typing.Union[X, Y]
  2. Removed redundant typehints where the type is clear from context, such as x: str = "hi"
  3. Converted generator typehints from Generator[T, None, None] to Iterator[T]
  4. Added missing typehints
  5. Improved existing typehints (mostly subscripting types)
  6. Made typehints backwards compatible with 3.8+
  7. Also fixed one syntax error that had a context manager using 3.9+ syntax