Skip to content

Allow to block any unrecognized Structure settings #244

Closed
@loyada

Description

@loyada

This is meant to protect developers from silly mistakes like typos:

class Foo(Structure):
    a: int
   
    _ignore_nnone = True
  1. Create a Typedpy global setting "block_unrecognized_settings".
  2. In the metaclass, if that flag is set, if we encounter an attribute without a type hint, and is not a method or a property, raise an exception.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions