Skip to content

Creating PathProperties with kwargs raises exception #18490

@kosinsky

Description

@kosinsky
  • Package Name: azure.storage.datalake
  • Package Version: 12.3.1
  • Operating System: Any
  • Python Version: 3.5+

Describe the bug
Attempt to create PathProperties with kwargs raises TypeError: object.__init__() takes no parameters
That makes mocking DataLike in test difficult

To Reproduce
Steps to reproduce the behavior:

  1. Run python REPL
  2. Execute following code
from azure.storage.filedatalake import PathProperties
PathProperties(name="bla")

Result

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/<user>/.pyenv/versions/3.5.7/lib/python3.5/site-packages/azure/storage/filedatalake/_models.py", line 231, in __init__
    **kwargs
TypeError: object.__init__() takes no parameters

Expected behavior
PathProperties object returned

Metadata

Metadata

Labels

StorageStorage Service (Queues, Blobs, Files)bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions