Skip to content

Commit

Permalink
doc and bump connector version
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmarxm committed May 2, 2022
1 parent ea8a161 commit 0ecea58
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@
- name: Mixpanel
sourceDefinitionId: 12928b32-bf0a-4f1e-964f-07e12e37153a
dockerRepository: airbyte/source-mixpanel
dockerImageTag: 0.1.13
dockerImageTag: 0.1.14
documentationUrl: https://docs.airbyte.io/integrations/sources/mixpanel
icon: mixpanel.svg
sourceType: api
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5038,7 +5038,7 @@
path_in_connector_config:
- "credentials"
- "client_secret"
- dockerImage: "airbyte/source-mixpanel:0.1.13"
- dockerImage: "airbyte/source-mixpanel:0.1.14"
spec:
documentationUrl: "https://docs.airbyte.io/integrations/sources/mixpanel"
connectionSpecification:
Expand Down
2 changes: 1 addition & 1 deletion airbyte-integrations/connectors/source-mixpanel/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ ENV AIRBYTE_ENTRYPOINT "python /airbyte/integration_code/main.py"
ENTRYPOINT ["python", "/airbyte/integration_code/main.py"]


LABEL io.airbyte.version=0.1.13
LABEL io.airbyte.version=0.1.14
LABEL io.airbyte.name=airbyte/source-mixpanel
1 change: 1 addition & 0 deletions docs/integrations/sources/mixpanel.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ Select the correct region \(EU or US\) for your Mixpanel project. See detail [he

| Version | Date | Pull Request | Subject |
|:---------|:-----------|:---------------------------------------------------------|:-----------------------------------------------------------------------------------------------------|
| `0.1.14` | 2022-05-02 | [11501](https://github.com/airbytehq/airbyte/pull/11501) | Improve incremental sync method to streams |
| `0.1.13` | 2022-04-27 | [12335](https://github.com/airbytehq/airbyte/pull/12335) | Adding fixtures to mock time.sleep for connectors that explicitly sleep |
| `0.1.12` | 2022-03-31 | [11633](https://github.com/airbytehq/airbyte/pull/11633) | Increase unit test coverage |
| `0.1.11` | 2022-04-04 | [11318](https://github.com/airbytehq/airbyte/pull/11318) | Change Response Reading |
Expand Down

2 comments on commit 0ecea58

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SonarQube Report

SonarQube report for Airbyte Connectors Source Mixpanel(#12521)

Measures

Name Value Name Value Name Value
Vulnerabilities 0 Duplicated Lines (%) 0.0 Coverage 83.3
Bugs 0 Security Rating A Quality Gate Status OK
Reliability Rating A Lines of Code 427 Lines to Cover 342
Duplicated Blocks 0 Code Smells 56 Blocker Issues 0
Critical Issues 0 Major Issues 7 Minor Issues 49

Detected Issues

Rule File Description Message
python:mypy_override (MINOR) source_mixpanel/source.py:616 Check that method override is compatible with base class Signature of "process_response" incompatible with supertype "Engage" . Code line: def process_response(self, response: requests.Response, stream_sli...
python:mypy_index (MINOR) source_mixpanel/source.py:619 Check indexing operations Unsupported target for indexed assignment ("Mapping[Any, Any]") . Code line: record["cohort_id"] = stream_slice["id"]
python:mypy_index (MINOR) source_mixpanel/source.py:619 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: record["cohort_id"] = stream_slice["id"]
python:mypy_valid_type (MINOR) source_mixpanel/source.py:109 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...ing[str, Any], latest_record: Mapping[str, Any]) -> Mapping[str, any]:
python:mypy_no_redef (MINOR) source_mixpanel/source.py:111 Check that each name is defined once Name "current_stream_state" already defined on line 109 . Code line: current_stream_state: str = current_stream_state.get("date", s...
python:mypy_call_overload (MINOR) source_mixpanel/source.py:113 Check that an overload variant matches arguments No overload variant of "max" matches argument types "MutableMapping[str, Any]", "str" . Code line: return {"date": max(current_stream_state, latest_record_date)}
python:mypy_assignment (MINOR) source_mixpanel/source.py:143 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: data_field: str = None
python:S5890 (MAJOR) source_mixpanel/source.py:143 Values assigned to variables should match their type annotations Assign to "data_field" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_override (MINOR) source_mixpanel/source.py:151 Check that method override is compatible with base class Signature of "parse_response" incompatible with supertype "MixpanelStream" . Code line: def parse_response(self, response: requests.Response, stream_state...
python:S5890 (MAJOR) source_mixpanel/source.py:174 Values assigned to variables should match their type annotations Assign to "data_field" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_mixpanel/source.py:174 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: data_field: str = None
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:187 Check that attribute exists "DateSlicesMixin" has no attribute "start_date" . Code line: start_date = self.start_date
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:195 Check that attribute exists "DateSlicesMixin" has no attribute "end_date" . Code line: start_date = min(start_date, self.end_date)
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:198 Check that attribute exists "DateSlicesMixin" has no attribute "attribution_window" . Code line: start_date = start_date - timedelta(days=self.attribution_wind...
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:200 Check that attribute exists "DateSlicesMixin" has no attribute "end_date" . Code line: while start_date <= self.end_date:
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:201 Check that attribute exists "DateSlicesMixin" has no attribute "date_window_size" . Code line: ... end_date = start_date + timedelta(days=self.date_window_size...
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:205 Check that attribute exists "DateSlicesMixin" has no attribute "end_date" . Code line: "end_date": str(min(end_date, self.end_date)),
python:mypy_valid_type (MINOR) source_mixpanel/source.py:214 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...e: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_pag...
python:mypy_index (MINOR) source_mixpanel/source.py:217 Check indexing operations Value of type "Optional[Mapping[str, any?]]" is not indexable . Code line: "from_date": stream_slice["start_date"],
python:mypy_index (MINOR) source_mixpanel/source.py:218 Check indexing operations Value of type "Optional[Mapping[str, any?]]" is not indexable . Code line: "to_date": stream_slice["end_date"],
python:mypy_no_any_return (MINOR) source_mixpanel/source.py:243 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "List[Dict[Any, Any]]" . Code line: return funnel_slices
python:mypy_no_redef (MINOR) source_mixpanel/source.py:273 Check that each name is defined once Name "stream_state" already defined on line 245 . Code line: stream_state: Dict = stream_state or {}
python:mypy_union_attr (MINOR) source_mixpanel/source.py:281 Check that attribute exists in each item of a union Item "None" of "Optional[Mapping[str, Any]]" has no attribute "get" . Code line: funnel_state = stream_state.get(funnel_id)
python:mypy_arg_type (MINOR) source_mixpanel/source.py:284 Check argument types in calls Argument 1 to "update" of "dict" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[Any, Any]" . Code line: stream_slices.append({**funnel_slice, **date_slice})
python:mypy_valid_type (MINOR) source_mixpanel/source.py:289 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...e: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_pag...
python:mypy_index (MINOR) source_mixpanel/source.py:294 Check indexing operations Value of type "Optional[Mapping[str, any?]]" is not indexable . Code line: funnel_id = str(stream_slice["funnel_id"])
python:mypy_arg_type (MINOR) source_mixpanel/source.py:297 Check argument types in calls Argument 1 to "request_params" of "DateSlicesMixin" has incompatible type "Optional[Any]"; expected "Mapping[str, Any]" . Code line: params = super().request_params(funnel_state, stream_slice, ne...
python:mypy_index (MINOR) source_mixpanel/source.py:298 Check indexing operations Value of type "Optional[Mapping[str, any?]]" is not indexable . Code line: params["funnel_id"] = stream_slice["funnel_id"]
python:S5890 (MAJOR) source_mixpanel/source.py:381 Values assigned to variables should match their type annotations Assign to "primary_key" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_mixpanel/source.py:381 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: primary_key: str = None
python:mypy_valid_type (MINOR) source_mixpanel/source.py:452 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...e: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_pag...
python:mypy_override (MINOR) source_mixpanel/source.py:475 Check that method override is compatible with base class Signature of "process_response" incompatible with supertype "MixpanelStream" . Code line: def process_response(self, response: requests.Response, stream_sta...
python:mypy_arg_type (MINOR) source_mixpanel/source.py:521 Check argument types in calls Argument 1 to "get" of "Mapping" has incompatible type "Optional[Any]"; expected "str" . Code line: item_cursor = item.get(cursor_field, "")
python:mypy_arg_type (MINOR) source_mixpanel/source.py:522 Check argument types in calls Argument 1 to "get" of "Mapping" has incompatible type "Optional[Any]"; expected "str" . Code line: state_cursor = stream_state.get(cursor_field, "")
python:mypy_no_any_return (MINOR) source_mixpanel/source.py:563 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Mapping[str, Any]" . Code line: return schema
python:mypy_index (MINOR) source_mixpanel/source.py:576 Check indexing operations Value of type "Optional[List[str]]" is not indexable . Code line: cursor_name = cursor_field[-1]
python:mypy_index (MINOR) source_mixpanel/source.py:578 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: stream_state[self.usr_cursor_key()] = cursor_name
python:mypy_no_any_return (MINOR) source_mixpanel/source.py:581 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Iterable[Mapping[str, Any]]" . Code line: return super().read_records(sync_mode, cursor_field, stream_sl...
python:mypy_arg_type (MINOR) source_mixpanel/source.py:585 Check argument types in calls Argument 1 to "get" of "Mapping" has incompatible type "Optional[Any]"; expected "str" . Code line: ... state_cursor = (current_stream_state or {}).get(cursor_field, "")
python:mypy_arg_type (MINOR) source_mixpanel/source.py:587 Check argument types in calls Argument 1 to "get" of "Mapping" has incompatible type "Optional[Any]"; expected "str" . Code line: record_cursor = latest_record.get(cursor_field, self.start_dat...
python:S5890 (MAJOR) source_mixpanel/source.py:705 Values assigned to variables should match their type annotations Assign to "primary_key" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_mixpanel/source.py:705 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: primary_key: str = None
python:S5890 (MAJOR) source_mixpanel/source.py:706 Values assigned to variables should match their type annotations Assign to "data_field" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_mixpanel/source.py:706 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: data_field: str = None
python:mypy_override (MINOR) source_mixpanel/source.py:712 Check that method override is compatible with base class Return type "Iterable[str]" of "process_response" incompatible with return type "Iterable[Mapping[Any, Any]]" in supertype "MixpanelStream" . Code line: def process_response(self, response: requests.Response, **kwargs) ...
python:S5890 (MAJOR) source_mixpanel/source.py:757 Values assigned to variables should match their type annotations Assign to "primary_key" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_mixpanel/source.py:757 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: primary_key: str = None
python:S5890 (MAJOR) source_mixpanel/source.py:759 Values assigned to variables should match their type annotations Assign to "reqs_per_hour_limit" a value of type "str" instead of "int" or update its type hint.
python:mypy_assignment (MINOR) source_mixpanel/source.py:759 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "MixpanelStream" defined the type as "int") . Code line: reqs_per_hour_limit: str = 60 # 1 query per minute
python:mypy_no_any_return (MINOR) source_mixpanel/source.py:845 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Mapping[str, Any]" . Code line: return schema
python:mypy_index (MINOR) source_mixpanel/source.py:891 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: config["start_date"] = start_date or now - timedelta(days=365)
python:mypy_valid_type (MINOR) source_mixpanel/source.py:849 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...logger: AirbyteLogger, config: Mapping[str, Any]) -> Tuple[bool, any]:
python:mypy_import (MINOR) source_mixpanel/source.py:14 Require that imported module can be found or has stubs Library stubs not installed for "requests" (or incompatible with Python 3.9) . Code line: import requests
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:890 Check that attribute exists Module has no attribute "parse" . Code line: start_date = pendulum.parse(config["start_date"]).date()
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:895 Check that attribute exists Module has no attribute "parse" . Code line: end_date = pendulum.parse(end_date).date()
python:mypy_index (MINOR) source_mixpanel/source.py:896 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: config["end_date"] = end_date or now # set to now by default

Coverage (83.3%)

File Coverage File Coverage
source_mixpanel/init.py 100.0 source_mixpanel/source.py 83.2

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SonarQube Report

SonarQube report for Airbyte Connectors Source Mixpanel(#12521)

Measures

Name Value Name Value Name Value
Coverage 83.3 Duplicated Lines (%) 0.0 Security Rating A
Vulnerabilities 0 Lines to Cover 342 Quality Gate Status OK
Bugs 0 Duplicated Blocks 0 Lines of Code 427
Code Smells 56 Reliability Rating A Blocker Issues 0
Critical Issues 0 Major Issues 7 Minor Issues 49

Detected Issues

Rule File Description Message
python:mypy_override (MINOR) source_mixpanel/source.py:616 Check that method override is compatible with base class Signature of "process_response" incompatible with supertype "Engage" . Code line: def process_response(self, response: requests.Response, stream_sli...
python:mypy_index (MINOR) source_mixpanel/source.py:619 Check indexing operations Unsupported target for indexed assignment ("Mapping[Any, Any]") . Code line: record["cohort_id"] = stream_slice["id"]
python:mypy_index (MINOR) source_mixpanel/source.py:619 Check indexing operations Value of type "Optional[Mapping[str, Any]]" is not indexable . Code line: record["cohort_id"] = stream_slice["id"]
python:mypy_valid_type (MINOR) source_mixpanel/source.py:109 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...ing[str, Any], latest_record: Mapping[str, Any]) -> Mapping[str, any]:
python:mypy_no_redef (MINOR) source_mixpanel/source.py:111 Check that each name is defined once Name "current_stream_state" already defined on line 109 . Code line: current_stream_state: str = current_stream_state.get("date", s...
python:mypy_call_overload (MINOR) source_mixpanel/source.py:113 Check that an overload variant matches arguments No overload variant of "max" matches argument types "MutableMapping[str, Any]", "str" . Code line: return {"date": max(current_stream_state, latest_record_date)}
python:mypy_assignment (MINOR) source_mixpanel/source.py:143 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: data_field: str = None
python:S5890 (MAJOR) source_mixpanel/source.py:143 Values assigned to variables should match their type annotations Assign to "data_field" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_override (MINOR) source_mixpanel/source.py:151 Check that method override is compatible with base class Signature of "parse_response" incompatible with supertype "MixpanelStream" . Code line: def parse_response(self, response: requests.Response, stream_state...
python:S5890 (MAJOR) source_mixpanel/source.py:174 Values assigned to variables should match their type annotations Assign to "data_field" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_mixpanel/source.py:174 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: data_field: str = None
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:187 Check that attribute exists "DateSlicesMixin" has no attribute "start_date" . Code line: start_date = self.start_date
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:195 Check that attribute exists "DateSlicesMixin" has no attribute "end_date" . Code line: start_date = min(start_date, self.end_date)
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:198 Check that attribute exists "DateSlicesMixin" has no attribute "attribution_window" . Code line: start_date = start_date - timedelta(days=self.attribution_wind...
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:200 Check that attribute exists "DateSlicesMixin" has no attribute "end_date" . Code line: while start_date <= self.end_date:
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:201 Check that attribute exists "DateSlicesMixin" has no attribute "date_window_size" . Code line: ... end_date = start_date + timedelta(days=self.date_window_size...
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:205 Check that attribute exists "DateSlicesMixin" has no attribute "end_date" . Code line: "end_date": str(min(end_date, self.end_date)),
python:mypy_valid_type (MINOR) source_mixpanel/source.py:214 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...e: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_pag...
python:mypy_index (MINOR) source_mixpanel/source.py:217 Check indexing operations Value of type "Optional[Mapping[str, any?]]" is not indexable . Code line: "from_date": stream_slice["start_date"],
python:mypy_index (MINOR) source_mixpanel/source.py:218 Check indexing operations Value of type "Optional[Mapping[str, any?]]" is not indexable . Code line: "to_date": stream_slice["end_date"],
python:mypy_no_any_return (MINOR) source_mixpanel/source.py:243 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "List[Dict[Any, Any]]" . Code line: return funnel_slices
python:mypy_no_redef (MINOR) source_mixpanel/source.py:273 Check that each name is defined once Name "stream_state" already defined on line 245 . Code line: stream_state: Dict = stream_state or {}
python:mypy_union_attr (MINOR) source_mixpanel/source.py:281 Check that attribute exists in each item of a union Item "None" of "Optional[Mapping[str, Any]]" has no attribute "get" . Code line: funnel_state = stream_state.get(funnel_id)
python:mypy_arg_type (MINOR) source_mixpanel/source.py:284 Check argument types in calls Argument 1 to "update" of "dict" has incompatible type "Optional[Mapping[str, Any]]"; expected "Mapping[Any, Any]" . Code line: stream_slices.append({**funnel_slice, **date_slice})
python:mypy_valid_type (MINOR) source_mixpanel/source.py:289 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...e: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_pag...
python:mypy_index (MINOR) source_mixpanel/source.py:294 Check indexing operations Value of type "Optional[Mapping[str, any?]]" is not indexable . Code line: funnel_id = str(stream_slice["funnel_id"])
python:mypy_arg_type (MINOR) source_mixpanel/source.py:297 Check argument types in calls Argument 1 to "request_params" of "DateSlicesMixin" has incompatible type "Optional[Any]"; expected "Mapping[str, Any]" . Code line: params = super().request_params(funnel_state, stream_slice, ne...
python:mypy_index (MINOR) source_mixpanel/source.py:298 Check indexing operations Value of type "Optional[Mapping[str, any?]]" is not indexable . Code line: params["funnel_id"] = stream_slice["funnel_id"]
python:S5890 (MAJOR) source_mixpanel/source.py:381 Values assigned to variables should match their type annotations Assign to "primary_key" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_mixpanel/source.py:381 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: primary_key: str = None
python:mypy_valid_type (MINOR) source_mixpanel/source.py:452 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...e: Mapping[str, Any], stream_slice: Mapping[str, any] = None, next_pag...
python:mypy_override (MINOR) source_mixpanel/source.py:475 Check that method override is compatible with base class Signature of "process_response" incompatible with supertype "MixpanelStream" . Code line: def process_response(self, response: requests.Response, stream_sta...
python:mypy_arg_type (MINOR) source_mixpanel/source.py:521 Check argument types in calls Argument 1 to "get" of "Mapping" has incompatible type "Optional[Any]"; expected "str" . Code line: item_cursor = item.get(cursor_field, "")
python:mypy_arg_type (MINOR) source_mixpanel/source.py:522 Check argument types in calls Argument 1 to "get" of "Mapping" has incompatible type "Optional[Any]"; expected "str" . Code line: state_cursor = stream_state.get(cursor_field, "")
python:mypy_no_any_return (MINOR) source_mixpanel/source.py:563 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Mapping[str, Any]" . Code line: return schema
python:mypy_index (MINOR) source_mixpanel/source.py:576 Check indexing operations Value of type "Optional[List[str]]" is not indexable . Code line: cursor_name = cursor_field[-1]
python:mypy_index (MINOR) source_mixpanel/source.py:578 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: stream_state[self.usr_cursor_key()] = cursor_name
python:mypy_no_any_return (MINOR) source_mixpanel/source.py:581 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Iterable[Mapping[str, Any]]" . Code line: return super().read_records(sync_mode, cursor_field, stream_sl...
python:mypy_arg_type (MINOR) source_mixpanel/source.py:585 Check argument types in calls Argument 1 to "get" of "Mapping" has incompatible type "Optional[Any]"; expected "str" . Code line: ... state_cursor = (current_stream_state or {}).get(cursor_field, "")
python:mypy_arg_type (MINOR) source_mixpanel/source.py:587 Check argument types in calls Argument 1 to "get" of "Mapping" has incompatible type "Optional[Any]"; expected "str" . Code line: record_cursor = latest_record.get(cursor_field, self.start_dat...
python:S5890 (MAJOR) source_mixpanel/source.py:705 Values assigned to variables should match their type annotations Assign to "primary_key" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_mixpanel/source.py:705 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: primary_key: str = None
python:S5890 (MAJOR) source_mixpanel/source.py:706 Values assigned to variables should match their type annotations Assign to "data_field" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_mixpanel/source.py:706 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: data_field: str = None
python:mypy_override (MINOR) source_mixpanel/source.py:712 Check that method override is compatible with base class Return type "Iterable[str]" of "process_response" incompatible with return type "Iterable[Mapping[Any, Any]]" in supertype "MixpanelStream" . Code line: def process_response(self, response: requests.Response, **kwargs) ...
python:S5890 (MAJOR) source_mixpanel/source.py:757 Values assigned to variables should match their type annotations Assign to "primary_key" a value of type "str" instead of "NoneType" or update its type hint.
python:mypy_assignment (MINOR) source_mixpanel/source.py:757 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "None", variable has type "str") . Code line: primary_key: str = None
python:S5890 (MAJOR) source_mixpanel/source.py:759 Values assigned to variables should match their type annotations Assign to "reqs_per_hour_limit" a value of type "str" instead of "int" or update its type hint.
python:mypy_assignment (MINOR) source_mixpanel/source.py:759 Check that assigned value is compatible with target Incompatible types in assignment (expression has type "str", base class "MixpanelStream" defined the type as "int") . Code line: reqs_per_hour_limit: str = 60 # 1 query per minute
python:mypy_no_any_return (MINOR) source_mixpanel/source.py:845 Reject returning value with "Any" type if return type is not "Any" Returning Any from function declared to return "Mapping[str, Any]" . Code line: return schema
python:mypy_index (MINOR) source_mixpanel/source.py:891 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: config["start_date"] = start_date or now - timedelta(days=365)
python:mypy_valid_type (MINOR) source_mixpanel/source.py:849 Check that type (annotation) is valid Function "builtins.any" is not valid as a type . Code line: ...logger: AirbyteLogger, config: Mapping[str, Any]) -> Tuple[bool, any]:
python:mypy_import (MINOR) source_mixpanel/source.py:14 Require that imported module can be found or has stubs Library stubs not installed for "requests" (or incompatible with Python 3.9) . Code line: import requests
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:890 Check that attribute exists Module has no attribute "parse" . Code line: start_date = pendulum.parse(config["start_date"]).date()
python:mypy_attr_defined (MINOR) source_mixpanel/source.py:895 Check that attribute exists Module has no attribute "parse" . Code line: end_date = pendulum.parse(end_date).date()
python:mypy_index (MINOR) source_mixpanel/source.py:896 Check indexing operations Unsupported target for indexed assignment ("Mapping[str, Any]") . Code line: config["end_date"] = end_date or now # set to now by default

Coverage (83.3%)

File Coverage File Coverage
source_mixpanel/init.py 100.0 source_mixpanel/source.py 83.2

Please sign in to comment.